Skip to content

Commit

Permalink
- add retry for loading webview
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWeen committed Apr 25, 2024
1 parent 2a6eb60 commit 701d852
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Controls/tests/UITests/Tests/Issues/Issue21631.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,19 @@ public Issue21631(TestDevice device) : base(device) { }
"Injecting base tag in Webview2 works";

[Test]
[Category(UITestCategories.WebView)]
public async Task NavigateToStringWithWebviewWorks()
{
this.IgnoreIfPlatforms(new TestDevice[] { TestDevice.Android, TestDevice.Mac, TestDevice.iOS });

var size = App.WaitForElement("WaitForWebView").GetRect();

for (int i = 0; i < 5 && size.Height <= 0 && size.Width <= 0; i++)
{
await Task.Delay(250);
size = App.WaitForElement("WaitForWebView").GetRect();
}

App.WaitForElement("WaitForWebView");
await Task.Delay(500);
VerifyScreenshot();
}
}
Expand Down

0 comments on commit 701d852

Please sign in to comment.