Skip to content

Commit fe32ccb

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

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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)