mirror of
https://github.com/ppy/osu
synced 2025-01-26 15:53:12 +00:00
Fix IntroTestScene
not clearing previous notifications hard enough
This commit is contained in:
parent
7c72c6b43f
commit
c573396ab6
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user