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

Commit 2abfdb0

Browse files
committed
wait for window.READY so that this tests we dont double-preload
1 parent a80ac3a commit 2abfdb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/common/test.js

+1
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ function run(env) {
289289
it('passes entire request object to preload', () => {
290290
return nightmare
291291
.goto(`${base}/show-url`)
292+
.wait(() => window.READY)
292293
.evaluate(() => document.querySelector('p').innerHTML)
293294
.end().then(html => {
294295
assert.equal(html, `URL is /show-url`);

0 commit comments

Comments
 (0)