mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:07:44 +08:00
Add regression test coverage
This commit is contained in:
parent
8aff53172d
commit
545156d15c
@ -44,6 +44,20 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
exitViaEscapeAndConfirm();
|
exitViaEscapeAndConfirm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// This tests that the F1 key will open the mod select overlay, and not be handled / blocked by the music controller (which has the same default binding
|
||||||
|
/// but should be handled *after* song select).
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void TestOpenModSelectOverlayUsingAction()
|
||||||
|
{
|
||||||
|
TestSongSelect songSelect = null;
|
||||||
|
|
||||||
|
PushAndConfirm(() => songSelect = new TestSongSelect());
|
||||||
|
AddStep("Show mods overlay", () => InputManager.Key(Key.F1));
|
||||||
|
AddAssert("Overlay was shown", () => songSelect.ModSelectOverlay.State.Value == Visibility.Visible);
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestRetryCountIncrements()
|
public void TestRetryCountIncrements()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user