mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 03:05:12 +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', () => {
|
||||
return nightmare
|
||||
.goto(`${base}/show-url`)
|
||||
.wait(() => window.READY)
|
||||
.evaluate(() => document.querySelector('p').innerHTML)
|
||||
.end().then(html => {
|
||||
assert.equal(html, `URL is /show-url`);
|
||||
|
||||
Reference in New Issue
Block a user