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:
parent
ee6dcbd808
commit
7d6701f8e9
@ -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