Skip to content

Commit

Permalink
Update test to work with new drag bar location
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Nov 24, 2023
1 parent 3015135 commit 9015615
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions osu.Game.Tests/Visual/Online/TestSceneChatOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,8 @@ public void TestChatHeight()
});
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);
Expand Down

0 comments on commit 9015615

Please sign in to comment.