mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 19:52:55 +08:00
Merge pull request #16436 from smoogipoo/fix-intermittent-tests
This commit is contained in:
commit
24f02cab8a
@ -251,8 +251,9 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestModSelectInput()
|
public void TestModSelectInput()
|
||||||
{
|
{
|
||||||
TestPlaySongSelect songSelect = null;
|
AddUntilStep("Wait for toolbar to load", () => Game.Toolbar.IsLoaded);
|
||||||
|
|
||||||
|
TestPlaySongSelect songSelect = null;
|
||||||
PushAndConfirm(() => songSelect = new TestPlaySongSelect());
|
PushAndConfirm(() => songSelect = new TestPlaySongSelect());
|
||||||
|
|
||||||
AddStep("Show mods overlay", () => songSelect.ModSelectOverlay.Show());
|
AddStep("Show mods overlay", () => songSelect.ModSelectOverlay.Show());
|
||||||
@ -272,8 +273,9 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestBeatmapOptionsInput()
|
public void TestBeatmapOptionsInput()
|
||||||
{
|
{
|
||||||
TestPlaySongSelect songSelect = null;
|
AddUntilStep("Wait for toolbar to load", () => Game.Toolbar.IsLoaded);
|
||||||
|
|
||||||
|
TestPlaySongSelect songSelect = null;
|
||||||
PushAndConfirm(() => songSelect = new TestPlaySongSelect());
|
PushAndConfirm(() => songSelect = new TestPlaySongSelect());
|
||||||
|
|
||||||
AddStep("Show options overlay", () => songSelect.BeatmapOptionsOverlay.Show());
|
AddStep("Show options overlay", () => songSelect.BeatmapOptionsOverlay.Show());
|
||||||
@ -293,6 +295,8 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestSettingsViaHotkeyFromMainMenu()
|
public void TestSettingsViaHotkeyFromMainMenu()
|
||||||
{
|
{
|
||||||
|
AddUntilStep("Wait for toolbar to load", () => Game.Toolbar.IsLoaded);
|
||||||
|
|
||||||
AddAssert("toolbar not displayed", () => Game.Toolbar.State.Value == Visibility.Hidden);
|
AddAssert("toolbar not displayed", () => Game.Toolbar.State.Value == Visibility.Hidden);
|
||||||
|
|
||||||
AddStep("press settings hotkey", () =>
|
AddStep("press settings hotkey", () =>
|
||||||
@ -308,10 +312,11 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestToolbarHiddenByUser()
|
public void TestToolbarHiddenByUser()
|
||||||
{
|
{
|
||||||
AddStep("Enter menu", () => InputManager.Key(Key.Enter));
|
|
||||||
|
|
||||||
AddUntilStep("Wait for toolbar to load", () => Game.Toolbar.IsLoaded);
|
AddUntilStep("Wait for toolbar to load", () => Game.Toolbar.IsLoaded);
|
||||||
|
|
||||||
|
AddStep("Enter menu", () => InputManager.Key(Key.Enter));
|
||||||
|
AddUntilStep("Toolbar is visible", () => Game.Toolbar.State.Value == Visibility.Visible);
|
||||||
|
|
||||||
AddStep("Hide toolbar", () =>
|
AddStep("Hide toolbar", () =>
|
||||||
{
|
{
|
||||||
InputManager.PressKey(Key.ControlLeft);
|
InputManager.PressKey(Key.ControlLeft);
|
||||||
|
Loading…
Reference in New Issue
Block a user