(browser, expected = [])
| 18 | const invalidPage = new File(join(appDir, 'pages/invalid.js')) |
| 19 | |
| 20 | const checkIsReadyValues = (browser, expected = []) => { |
| 21 | return check(async () => { |
| 22 | const values = JSON.stringify( |
| 23 | (await browser.eval('window.isReadyValues')).sort() |
| 24 | ) |
| 25 | return JSON.stringify(expected.sort()) === values ? 'success' : values |
| 26 | }, 'success') |
| 27 | } |
| 28 | |
| 29 | function runTests() { |
| 30 | it('isReady should be true immediately for getInitialProps page', async () => { |