mirror of
https://github.com/ppy/osu.git
synced 2026-05-19 12:40:50 +08:00
46 lines
1.3 KiB
C#
46 lines
1.3 KiB
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using System.Linq;
|
|
using NUnit.Framework;
|
|
using osu.Framework.Testing;
|
|
using osu.Game.Screens.Menu;
|
|
using osuTK.Input;
|
|
|
|
namespace osu.Game.Tests.Visual.SongSelectV2
|
|
{
|
|
public partial class TestSceneSongSelectNavigation : OsuGameTestScene
|
|
{
|
|
public override void SetUpSteps()
|
|
{
|
|
base.SetUpSteps();
|
|
AddStep("press enter", () => InputManager.Key(Key.Enter));
|
|
AddWaitStep("wait", 5);
|
|
PushAndConfirm(() => new Screens.SelectV2.SoloSongSelect());
|
|
}
|
|
|
|
[Test]
|
|
public void TestOpenSkinEditor()
|
|
{
|
|
AddStep("toggle skin editor", () =>
|
|
{
|
|
InputManager.PressKey(Key.ControlLeft);
|
|
InputManager.PressKey(Key.ShiftLeft);
|
|
InputManager.Key(Key.S);
|
|
InputManager.ReleaseKey(Key.ControlLeft);
|
|
InputManager.ReleaseKey(Key.ShiftLeft);
|
|
});
|
|
}
|
|
|
|
[Test]
|
|
public void TestClickLogo()
|
|
{
|
|
AddStep("click", () =>
|
|
{
|
|
InputManager.MoveMouseTo(Game.ChildrenOfType<OsuLogo>().Single());
|
|
InputManager.Click(MouseButton.Left);
|
|
});
|
|
}
|
|
}
|
|
}
|