mirror of
https://github.com/ppy/osu.git
synced 2026-05-13 21:53:29 +08:00
Attempt to fix flaky TestGameplaySettingsDoesNotExpandWhenSkinOverlayPresent
See https://github.com/ppy/osu/pull/35118/checks?check_run_id=51202910556.
This commit is contained in:
@@ -278,6 +278,8 @@ namespace osu.Game.Tests.Visual.Navigation
|
||||
{
|
||||
advanceToSongSelect();
|
||||
openSkinEditor();
|
||||
AddUntilStep("skin editor visible", () => skinEditor.State.Value == Visibility.Visible);
|
||||
|
||||
AddStep("select autoplay", () => Game.SelectedMods.Value = new Mod[] { new OsuModAutoplay() });
|
||||
AddStep("import beatmap", () => BeatmapImportHelper.LoadQuickOszIntoOsu(Game).WaitSafely());
|
||||
AddUntilStep("wait for selected", () => !Game.Beatmap.IsDefault);
|
||||
@@ -290,8 +292,9 @@ namespace osu.Game.Tests.Visual.Navigation
|
||||
AddAssert("settings not visible", () => getPlayerSettingsOverlay().DrawWidth, () => Is.EqualTo(0));
|
||||
|
||||
toggleSkinEditor();
|
||||
AddUntilStep("skin editor hidden", () => skinEditor.State.Value == Visibility.Hidden);
|
||||
|
||||
AddStep("move cursor slightly", () => InputManager.MoveMouseTo(InputManager.ScreenSpaceDrawQuad.TopRight + new Vector2(1)));
|
||||
AddStep("move cursor slightly", () => InputManager.MoveMouseTo(InputManager.ScreenSpaceDrawQuad.TopRight + new Vector2(2)));
|
||||
AddUntilStep("settings visible", () => getPlayerSettingsOverlay().DrawWidth, () => Is.GreaterThan(0));
|
||||
|
||||
AddStep("move cursor to right of screen too far", () => InputManager.MoveMouseTo(InputManager.ScreenSpaceDrawQuad.TopRight + new Vector2(10240, 0)));
|
||||
|
||||
Reference in New Issue
Block a user