Avoid test failures on non-triangle intro tests

This commit is contained in:
Dean Herbert
2022-01-30 18:59:18 +09:00
parent 52f1c2bfdb
commit 6a21d58325
4 changed files with 8 additions and 1 deletions

View File

@ -20,6 +20,8 @@ namespace osu.Game.Tests.Visual.Menus
[Cached]
private OsuLogo logo;
protected abstract bool IntroReliesOnTrack { get; }
protected OsuScreenStack IntroStack;
private IntroScreen intro;
@ -103,7 +105,9 @@ namespace osu.Game.Tests.Visual.Menus
});
AddUntilStep("wait for menu", () => intro.DidLoadMenu);
AddUntilStep("wait for notification", () => notifications.UnreadCount.Value == 1);
if (IntroReliesOnTrack)
AddUntilStep("wait for notification", () => notifications.UnreadCount.Value == 1);
AddStep("uninstall delegate", () => trackResetDelegate?.Cancel());
}