1
0
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:
Dean Herbert 2025-02-14 14:58:04 +09:00
parent f9b7a8ed10
commit 8ce28d56bb
No known key found for this signature in database

View File

@ -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", () =>