Add test coverage to ensure we don't leave any screens in the first run overlay

This commit is contained in:
Dean Herbert 2022-04-18 19:41:07 +09:00
parent 2682373bf2
commit 5fd64a4c78

View File

@ -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);