1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 08:12:56 +08:00

Adjust failing test scenes

This commit is contained in:
Salman Ahmed 2023-11-05 02:50:14 +03:00
parent 1d4f4cf4c3
commit 634795e45f

View File

@ -96,7 +96,7 @@ namespace osu.Game.Tests.Visual.Gameplay
AddStep("Begin drag top left", () => AddStep("Begin drag top left", () =>
{ {
InputManager.MoveMouseTo(box1.ScreenSpaceDrawQuad.TopLeft - new Vector2(box1.ScreenSpaceDrawQuad.Width / 4)); InputManager.MoveMouseTo(box1.ScreenSpaceDrawQuad.TopLeft - new Vector2(box1.ScreenSpaceDrawQuad.Width / 4, box1.ScreenSpaceDrawQuad.Height / 8));
InputManager.PressButton(MouseButton.Left); InputManager.PressButton(MouseButton.Left);
}); });
@ -146,8 +146,7 @@ namespace osu.Game.Tests.Visual.Gameplay
{ {
AddStep("Add big black box", () => AddStep("Add big black box", () =>
{ {
InputManager.MoveMouseTo(skinEditor.ChildrenOfType<BigBlackBox>().First()); skinEditor.ChildrenOfType<SkinComponentToolbox.ToolboxComponentButton>().First(b => b.ChildrenOfType<BigBlackBox>().FirstOrDefault() != null).TriggerClick();
InputManager.Click(MouseButton.Left);
}); });
AddStep("store box", () => AddStep("store box", () =>