mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 22:33:05 +08:00
Update test to work with new drag bar location
This commit is contained in:
parent
3015135178
commit
9015615336
@ -180,11 +180,8 @@ namespace osu.Game.Tests.Visual.Online
|
||||
});
|
||||
AddStep("Show overlay", () => chatOverlay.Show());
|
||||
AddAssert("Overlay uses config height", () => chatOverlay.Height == configChatHeight.Default);
|
||||
AddStep("Click top bar", () =>
|
||||
{
|
||||
InputManager.MoveMouseTo(chatOverlayTopBar);
|
||||
InputManager.PressButton(MouseButton.Left);
|
||||
});
|
||||
AddStep("Move mouse to drag bar", () => InputManager.MoveMouseTo(chatOverlayTopBar.DragBar));
|
||||
AddStep("Click drag bar", () => InputManager.PressButton(MouseButton.Left));
|
||||
AddStep("Drag overlay to new height", () => InputManager.MoveMouseTo(chatOverlayTopBar, new Vector2(0, -300)));
|
||||
AddStep("Stop dragging", () => InputManager.ReleaseButton(MouseButton.Left));
|
||||
AddStep("Store new height", () => newHeight = chatOverlay.Height);
|
||||
|
Loading…
Reference in New Issue
Block a user