Skip to content

Commit 91a4d41

Browse files
committed
fix: Ensure the test waits properly
1 parent d2bbb2e commit 91a4d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Uno.UI.RuntimeTests/Tests/Microsoft_UI_Xaml_Controls/Given_WebView2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ async Task Do()
336336
};
337337
webView.CoreWebView2.Navigate("http://UnoNativeAssets/index.html");
338338
await TestServices.WindowHelper.WaitFor(() => navigated, 3000);
339-
await TestServices.WindowHelper.WaitFor(() => message is not null, 2000);
339+
await TestServices.WindowHelper.WaitFor(() => !string.IsNullOrEmpty(message), 2000);
340340

341341
if (RuntimeTestsPlatformHelper.CurrentPlatform is RuntimeTestPlatforms.SkiaX11) // On X11 we double escape. This makes sense because in site.js, we stringify a string. Other webkit-based implementations get this wrong
342342
{

0 commit comments

Comments
 (0)