mirror of
https://github.com/ppy/osu.git
synced 2025-03-25 18:57:18 +08:00
Fix tests not waiting enough
This commit is contained in:
parent
f9b7a8ed10
commit
8ce28d56bb
@ -77,9 +77,9 @@ namespace osu.Game.Tests.Visual.Playlists
|
||||
|
||||
AddStep("click button", () => InputManager.Click(MouseButton.Left));
|
||||
|
||||
AddAssert("notification shown", () => notificationOverlay.AllNotifications.FirstOrDefault(n => n.Text.ToString().StartsWith("Created", StringComparison.Ordinal)) != null);
|
||||
AddUntilStep("notification shown", () => notificationOverlay.AllNotifications.Any(n => n.Text.ToString().StartsWith("Created new collection", StringComparison.Ordinal)));
|
||||
|
||||
AddAssert("realm is updated", () => Realm.Realm.All<BeatmapCollection>().FirstOrDefault(c => c.Name == room.Name) != null);
|
||||
AddUntilStep("realm is updated", () => Realm.Realm.All<BeatmapCollection>().FirstOrDefault(c => c.Name == room.Name) != null);
|
||||
}
|
||||
|
||||
private void importBeatmap() => AddStep("import beatmap", () =>
|
||||
|
Loading…
x
Reference in New Issue
Block a user