mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-18 13:35:08 +00:00
wait for window.READY so that this tests we dont double-preload
This commit is contained in:
@@ -289,6 +289,7 @@ function run(env) {
|
|||||||
it('passes entire request object to preload', () => {
|
it('passes entire request object to preload', () => {
|
||||||
return nightmare
|
return nightmare
|
||||||
.goto(`${base}/show-url`)
|
.goto(`${base}/show-url`)
|
||||||
|
.wait(() => window.READY)
|
||||||
.evaluate(() => document.querySelector('p').innerHTML)
|
.evaluate(() => document.querySelector('p').innerHTML)
|
||||||
.end().then(html => {
|
.end().then(html => {
|
||||||
assert.equal(html, `URL is /show-url`);
|
assert.equal(html, `URL is /show-url`);
|
||||||
|
|||||||
Reference in New Issue
Block a user