Skip to content

Commit

Permalink
Merge pull request #31868 from smoogipoo/fix-intermittent-test
Browse files Browse the repository at this point in the history
Attempt to fix intermittent collections test
  • Loading branch information
bdach authored Feb 13, 2025
2 parents c13bc8b + 7d6701f commit 9adf80b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,6 @@ private void assertCollectionCount(int count)

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

0 comments on commit 9adf80b

Please sign in to comment.