From ac2f9370f8f911ffb34016cbcca89dcf83d778f6 Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Sat, 21 Sep 2024 05:59:41 +0300 Subject: [PATCH] chore: Adjust test for sync image loading --- .../Tests/Windows_UI_Xaml_Media_Imaging/Given_BitmapSource.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Media_Imaging/Given_BitmapSource.cs b/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Media_Imaging/Given_BitmapSource.cs index 9380e7d0684f..1a155b4dc82f 100644 --- a/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Media_Imaging/Given_BitmapSource.cs +++ b/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Media_Imaging/Given_BitmapSource.cs @@ -298,9 +298,9 @@ public async Task When_Uri_Nullified() var initialScreenshot = await UITestHelper.ScreenShot(border); - bitmapImage.UriSource = new Uri("ms-appx:///Assets/BlueSquare.png"); bool opened = false; bitmapImage.ImageOpened += (s, e) => opened = true; + bitmapImage.UriSource = new Uri("ms-appx:///Assets/BlueSquare.png"); await WindowHelper.WaitForIdle(); await WindowHelper.WaitFor(() => opened);