1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-20 01:59:54 +08:00

Fix IntroTestScene not clearing previous notifications hard enough

This commit is contained in:
Dean Herbert
2022-08-31 12:46:54 +09:00
Unverified
parent 7c72c6b43f
commit c573396ab6
@@ -52,6 +52,7 @@ namespace osu.Game.Tests.Visual.Menus
},
notifications = new NotificationOverlay
{
Depth = float.MinValue,
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
}
@@ -82,7 +83,14 @@ namespace osu.Game.Tests.Visual.Menus
[Test]
public virtual void TestPlayIntroWithFailingAudioDevice()
{
AddStep("hide notifications", () => notifications.Hide());
AddStep("reset notifications", () =>
{
notifications.Show();
notifications.Hide();
});
AddUntilStep("wait for no notifications", () => notifications.UnreadCount.Value, () => Is.EqualTo(0));
AddStep("restart sequence", () =>
{
logo.FinishTransforms();