mirror of
https://github.com/ppy/osu
synced 2024-12-13 02:17:32 +00: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.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Moq;
|
||||
using NUnit.Framework;
|
||||
using osu.Framework.Allocation;
|
||||
@ -55,6 +56,8 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
return overlay.State.Value == Visibility.Hidden;
|
||||
});
|
||||
|
||||
AddUntilStep("wait for screens removed", () => !overlay.ChildrenOfType<Screen>().Any());
|
||||
|
||||
AddStep("display again on demand", () => overlay.Show());
|
||||
|
||||
AddUntilStep("back at start", () => overlay.CurrentScreen is ScreenWelcome);
|
||||
|
Loading…
Reference in New Issue
Block a user