mirror of
https://github.com/ppy/osu.git
synced 2025-02-23 06:03:21 +08:00
Merge pull request #31868 from smoogipoo/fix-intermittent-test
Attempt to fix intermittent collections test
This commit is contained in:
commit
9adf80bbfd
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user