diff --git a/src/SamplesApp/SamplesApp.UITests/Windows_UI_Xaml_Controls/ImageTests/UnoSamples_Tests.Image.cs b/src/SamplesApp/SamplesApp.UITests/Windows_UI_Xaml_Controls/ImageTests/UnoSamples_Tests.Image.cs index 0d22270034b1..6f98d4ff4ce8 100644 --- a/src/SamplesApp/SamplesApp.UITests/Windows_UI_Xaml_Controls/ImageTests/UnoSamples_Tests.Image.cs +++ b/src/SamplesApp/SamplesApp.UITests/Windows_UI_Xaml_Controls/ImageTests/UnoSamples_Tests.Image.cs @@ -65,8 +65,7 @@ public void ImageStretch_None() void HasValidSize(string name) { var rect = _app.Query(q => q.All().Marked(name)).First().Rect; - Assert.That(rect.Width != 0); - Assert.That(rect.Height != 0); + _app.WaitFor(() => rect.Width != 0 && rect.Height != 0, timeout: TimeSpan.FromSeconds(2)); } HasValidSize("image01");