Skip to content

Commit 4b4c842

Browse files
committed
chore: Try to 'jiggle' block.
1 parent 75a8bc8 commit 4b4c842

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/webdriverio/test/scroll_test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import * as chai from 'chai';
99
import {Key} from 'webdriverio';
1010
import {
1111
sendKeyAndWait,
12+
keyUp,
1213
keyDown,
1314
keyRight,
1415
PAUSE_TIME,
@@ -85,7 +86,10 @@ suite('Scrolling into view', function () {
8586
// Insert and confirm the test block which should be scrolled into view.
8687
await sendKeyAndWait(this.browser, 't');
8788
await keyRight(this.browser);
88-
await sendKeyAndWait(this.browser, Key.Enter, 2);
89+
await sendKeyAndWait(this.browser, Key.Enter);
90+
await keyDown(this.browser);
91+
await keyUp(this.browser);
92+
await sendKeyAndWait(this.browser, Key.Enter);
8993
const focusedNodeId2 = await this.browser.execute(() => {
9094
return Blockly.getFocusManager().getFocusedNode()?.getFocusableElement()?.id;
9195
});

0 commit comments

Comments
 (0)