1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-22 08:19:05 +08:00

Attempt to fix intermittent collections test

This commit is contained in:
Dan Balasescu 2025-02-13 01:20:42 +09:00
parent ee6dcbd808
commit 7d6701f8e9
No known key found for this signature in database

View File

@ -376,6 +376,6 @@ namespace osu.Game.Tests.Visual.Collections
private void assertCollectionName(int index, string name)
=> AddUntilStep($"item {index + 1} has correct name",
() => dialog.ChildrenOfType<DrawableCollectionList>().Single().OrderedItems.ElementAt(index).ChildrenOfType<TextBox>().First().Text == name);
() => dialog.ChildrenOfType<DrawableCollectionList>().Single().OrderedItems.ElementAtOrDefault(index)?.ChildrenOfType<TextBox>().First().Text == name);
}
}