Skip to content

Commit

Permalink
chore: Adjust test for sync image loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 committed Sep 21, 2024
1 parent 1a3bea9 commit ac2f937
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ac2f937

Please sign in to comment.