Skip to content

Commit 361c9f2

Browse files
committed
chore: try to fix tests
1 parent 2698964 commit 361c9f2

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

test/webdriverio/test/keyboard_mode_test.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,7 @@ suite(
129129

130130
await this.browser.pause(PAUSE_TIME);
131131
// Right click a block
132-
const element = await getBlockElementById(
133-
this.browser,
134-
'simple_circle_1',
135-
);
132+
const element = await getBlockElementById(this.browser, 'controls_if_1');
136133
await element.click({button: 'right'});
137134
await this.browser.pause(PAUSE_TIME);
138135

@@ -146,11 +143,8 @@ suite(
146143

147144
await this.browser.pause(PAUSE_TIME);
148145
// Drag a block
149-
const element = await getBlockElementById(
150-
this.browser,
151-
'simple_circle_1',
152-
);
153-
await element.dragAndDrop({x: 100, y: 100});
146+
const element = await getBlockElementById(this.browser, 'controls_if_1');
147+
await element.dragAndDrop({x: 10, y: 10});
154148
await this.browser.pause(PAUSE_TIME);
155149

156150
chai.assert.isFalse(await isKeyboardNavigating(this.browser));

0 commit comments

Comments
 (0)