1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:52:53 +08:00

add test coverage

This commit is contained in:
Gabe Livengood 2022-06-19 14:35:05 -04:00
parent a5bc769243
commit 2b0e82be40
No known key found for this signature in database
GPG Key ID: 70321B78DAECE683

View File

@ -88,6 +88,31 @@ namespace osu.Game.Tests.Visual.Navigation
AddAssert("value is less than default", () => hitErrorMeter.JudgementLineThickness.Value < hitErrorMeter.JudgementLineThickness.Default);
}
[Test]
public void TestComponentsDeselectedOnSkinEditorHide()
{
advanceToSongSelect();
openSkinEditor();
switchToGameplayScene();
AddStep("select all components", () =>
{
InputManager.PressKey(Key.ControlLeft);
InputManager.Key(Key.A);
InputManager.ReleaseKey(Key.ControlLeft);
});
AddStep("toggle skin editor", () =>
{
InputManager.PressKey(Key.ControlLeft);
InputManager.PressKey(Key.ShiftLeft);
InputManager.Key(Key.S);
InputManager.ReleaseKey(Key.ControlLeft);
InputManager.ReleaseKey(Key.ShiftLeft);
});
AddUntilStep("no components selected", () => skinEditor.SelectedComponents.Count == 0);
}
[Test]
public void TestAutoplayCompatibleModsRetainedOnEnteringGameplay()
{