Skip to content

Commit dd89dbd

Browse files
Backport UI Test fixes from main (#17535)
Co-authored-by: Shane Neuville <[email protected]>
1 parent e022e96 commit dd89dbd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: src/Controls/tests/DeviceTests/Elements/CollectionView/CollectionViewTests.cs

+9
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,15 @@ await CreateHandlerAndAddToWindow<LayoutHandler>(layout, async handler =>
134134
GenerateItems(itemsCount, data);
135135
collectionView.ItemsSource = data;
136136

137+
if (n == 0)
138+
{
139+
await AssertionExtensions.Wait(() => collectionView.Frame.Width > 0 && collectionView.Frame.Height > 0);
140+
}
141+
else
142+
{
143+
await WaitForUIUpdate(frame, collectionView);
144+
}
145+
137146
await WaitForUIUpdate(frame, collectionView);
138147
frame = collectionView.Frame;
139148

0 commit comments

Comments
 (0)