Fix IntroTestScene not clearing previous notifications hard enough

This commit is contained in:
Dean Herbert 2022-08-31 12:46:54 +09:00
parent 7c72c6b43f
commit c573396ab6

View File

@ -52,6 +52,7 @@ namespace osu.Game.Tests.Visual.Menus
}, },
notifications = new NotificationOverlay notifications = new NotificationOverlay
{ {
Depth = float.MinValue,
Anchor = Anchor.TopRight, Anchor = Anchor.TopRight,
Origin = Anchor.TopRight, Origin = Anchor.TopRight,
} }
@ -82,7 +83,14 @@ namespace osu.Game.Tests.Visual.Menus
[Test] [Test]
public virtual void TestPlayIntroWithFailingAudioDevice() 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", () => AddStep("restart sequence", () =>
{ {
logo.FinishTransforms(); logo.FinishTransforms();