mirror of
https://github.com/ppy/osu.git
synced 2025-03-06 02:22:58 +08:00
Add test coverage to ensure we don't leave any screens in the first run overlay
This commit is contained in:
parent
2682373bf2
commit
5fd64a4c78
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using Moq;
|
using Moq;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
@ -55,6 +56,8 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
return overlay.State.Value == Visibility.Hidden;
|
return overlay.State.Value == Visibility.Hidden;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
AddUntilStep("wait for screens removed", () => !overlay.ChildrenOfType<Screen>().Any());
|
||||||
|
|
||||||
AddStep("display again on demand", () => overlay.Show());
|
AddStep("display again on demand", () => overlay.Show());
|
||||||
|
|
||||||
AddUntilStep("back at start", () => overlay.CurrentScreen is ScreenWelcome);
|
AddUntilStep("back at start", () => overlay.CurrentScreen is ScreenWelcome);
|
||||||
|
Loading…
Reference in New Issue
Block a user