Skip to content

Commit

Permalink
chore: Add delay to wait element
Browse files Browse the repository at this point in the history
  • Loading branch information
eriklimakc committed Sep 25, 2024
1 parent 02c3762 commit e8d9df1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions testing/TestHarness/TestHarness.UITest/AppExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
// TODO: Remove commented code if it works in CI
public static class AppExtensions
{
public const int UIWaitTimeInMilliseconds = 1000;
public const int UIWaitTimeInMilliseconds = 5000;
public static async Task TapAndWait(this IApp app, string elementToTap, string elementToWaitFor )
{
app.WaitElement(elementToTap);
//await Task.Delay(UIWaitTimeInMilliseconds);
await Task.Delay(UIWaitTimeInMilliseconds);

app.FastTap(elementToTap);
app.WaitElement(elementToWaitFor);

//await Task.Delay(UIWaitTimeInMilliseconds);
await Task.Delay(UIWaitTimeInMilliseconds);
}

public static async Task SelectElementIndexAndWait(this IApp app, string listName, string indexToSelect, string elementToWaitFor)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,11 @@ public async Task When_ToDo_Narrow_Nav_ContentControl()

// Login
await App.TapAndWait("LoginButton", "HomeNavigationBar");
await Task.Delay(5000);

// Select a task list
await App.TapAndWait("SelectTaskList2Button", "TaskListNavigationBar");
await Task.Delay(5000);

await App.TapAndWait("SelectActiveTask1Button", "TaskNavigationBar");
await Task.Delay(5000);

await App.TapAndWait("DetailsBackButton", "TaskListNavigationBar");
}
Expand Down

0 comments on commit e8d9df1

Please sign in to comment.