Skip to content

Commit 8c39866

Browse files
committed
fix(tests): Increase timeout for certain slow tests
1 parent 06ab50c commit 8c39866

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

test/webdriverio/test/actions_test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ suite('Menus test', function () {
2525

2626
// Clear the workspace and load start blocks.
2727
setup(async function () {
28+
// This is the first test suite, which must wait for Chrome +
29+
// chromedriver to start up, which can be slow—perhaps a few
30+
// seconds. Allow 30s just in case.
31+
this.timeout(30000);
32+
2833
this.browser = await testSetup(testFileLocations.BASE);
2934
await this.browser.pause(PAUSE_TIME);
3035
});

test/webdriverio/test/move_test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ import {
1818
} from './test_setup.js';
1919

2020
suite('Move tests', function () {
21-
// Disable timeouts when non-zero PAUSE_TIME is used to watch tests run.
22-
if (PAUSE_TIME) this.timeout(0);
21+
// Increase timeout to 10s for this longer test (but disable
22+
// timeouts if when non-zero PAUSE_TIME is used to watch tests) run.
23+
this.timeout(PAUSE_TIME ? 0 : 10000);
2324

2425
// Clear the workspace and load start blocks.
2526
setup(async function () {

test/webdriverio/test/scroll_test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ suite('Scrolling into view', function () {
4545
});
4646

4747
test('Insert scrolls new block into view', async function () {
48+
// Increase timeout to 10s for this longer test.
49+
this.timeout(PAUSE_TIME ? 0 : 10000);
50+
4851
await tabNavigateToWorkspace(this.browser);
4952

5053
// Separate the two top-level blocks by moving p5_draw_1 further down.

0 commit comments

Comments
 (0)