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

Merge pull request #31868 from smoogipoo/fix-intermittent-test

Attempt to fix intermittent collections test
This commit is contained in:
Bartłomiej Dach 2025-02-13 08:53:03 +01:00 committed by GitHub
commit 9adf80bbfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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