Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
OliBomby committed Aug 29, 2024
1 parent ba0c4df commit 3a1afda
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,15 +332,6 @@ public void TestSamplePointSeek()
});
});

clickNodeSamplePiece(0, 0);
editorTimeIs(0);
clickNodeSamplePiece(0, 1);
editorTimeIs(813);
clickNodeSamplePiece(0, 2);
editorTimeIs(1627);
clickSamplePiece(0);
editorTimeIs(406);

seekSamplePiece(-1);
editorTimeIs(0);
samplePopoverIsOpen();
Expand Down Expand Up @@ -692,11 +683,11 @@ private void clickNodeSamplePiece(int objectIndex, int nodeIndex) => AddStep($"c

private void seekSamplePiece(int direction) => AddStep($"seek sample piece {direction}", () =>
{
InputManager.PressKey(Key.ControlLeft);
InputManager.PressKey(Key.ShiftLeft);
InputManager.PressKey(Key.AltLeft);
InputManager.Key(direction < 1 ? Key.Left : Key.Right);
InputManager.ReleaseKey(Key.AltLeft);
InputManager.ReleaseKey(Key.ShiftLeft);
InputManager.ReleaseKey(Key.ControlLeft);
});

private void samplePopoverIsOpen() => AddUntilStep("sample popover is open", () =>
Expand Down

0 comments on commit 3a1afda

Please sign in to comment.