Skip to content
This repository was archived by the owner on Feb 11, 2023. It is now read-only.

Commit 68c1bd7

Browse files
committed
Increase wait times for slower browsers in E2E tests
1 parent 9715f03 commit 68c1bd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/scroll-to-tests.e2e.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test('scrolls to green box into view after clicking scroll button after 1000ms',
2020
await t
2121
.expect(await green.getBoundingClientRectProperty('top'))
2222
.gte(viewportHeight);
23-
await t.wait(1100); // some browsers take longer than 1000ms
23+
await t.wait(1500); // some browsers take longer than 1000ms
2424
// should be inside viewport here
2525
await t.expect(await green.getBoundingClientRectProperty('top')).gte(0);
2626
});
@@ -36,7 +36,7 @@ test('clicking green box scrolls pink box to top of viewport after 1000 ms', asy
3636
await t
3737
.expect(await pink.getBoundingClientRectProperty('top'))
3838
.gt(viewportHeight);
39-
await t.wait(1100); // some browsers take longer than 1000ms
39+
await t.wait(1500); // some browsers take longer than 1000ms
4040
const top = await pink.getBoundingClientRectProperty('top');
4141
await t.expect(top).eql(0, 'top of pink element is NOT at top of viewport');
4242
});

0 commit comments

Comments
 (0)