mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 14:12:56 +08: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
|
||||
{
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user