Skip to content

Commit 6cbed59

Browse files
committed
test: increase sleep for a couple of tests
1 parent 3805a72 commit 6cbed59

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/quicklink.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ mainSuite('should prefetch in-viewport links from NodeList', async context => {
9595
responseURLs.push(resp.url());
9696
});
9797
await context.page.goto(`${server}/test-node-list.html`);
98-
await sleep();
98+
await sleep(1500);
9999
assert.instance(responseURLs, Array);
100100
assert.ok(responseURLs.includes(`${server}/2.html`));
101101
assert.ok(responseURLs.includes(`${server}/3.html`));
@@ -107,7 +107,7 @@ mainSuite('should only prefetch links if allowed in origins list', async context
107107
responseURLs.push(resp.url());
108108
});
109109
await context.page.goto(`${server}/test-allow-origin.html`);
110-
await sleep(1000);
110+
await sleep(1500);
111111
assert.instance(responseURLs, Array);
112112

113113
// => origins: ['github.githubassets.com']
@@ -313,7 +313,7 @@ mainSuite('should delay prefetch for in-viewport links correctly (UMD)', async c
313313
responseURLs.push(resp.url());
314314
});
315315
await context.page.goto(`${server}/test-delay.html`);
316-
await sleep();
316+
await sleep(1500);
317317
assert.instance(responseURLs, Array);
318318
assert.ok(responseURLs.includes(`${server}/1.html`));
319319
assert.ok(responseURLs.includes(`${server}/2.html`));
@@ -322,7 +322,7 @@ mainSuite('should delay prefetch for in-viewport links correctly (UMD)', async c
322322
await context.page.evaluate(_ => {
323323
window.scrollBy(0, window.innerHeight);
324324
});
325-
await sleep(100);
325+
await sleep(200);
326326
await context.page.evaluate(_ => {
327327
window.scrollBy(0, -window.innerHeight);
328328
});
@@ -331,7 +331,7 @@ mainSuite('should delay prefetch for in-viewport links correctly (UMD)', async c
331331
await context.page.evaluate(_ => {
332332
window.scrollBy(0, window.innerHeight);
333333
});
334-
await sleep(200);
334+
await sleep(300);
335335
assert.ok(responseURLs.includes(`${server}/4.html`));
336336
});
337337

0 commit comments

Comments
 (0)