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);