(browser)
| 38 | } |
| 39 | |
| 40 | const didNotReload = async (browser) => { |
| 41 | for (let i = 0; i < 4; i++) { |
| 42 | await waitFor(500) |
| 43 | |
| 44 | const result = await browser.eval('window.errorLoad') |
| 45 | |
| 46 | if (result !== true) { |
| 47 | throw new Error( |
| 48 | `did not find window.errorLoad, current url: ${await browser.url()}` |
| 49 | ) |
| 50 | } |
| 51 | |
| 52 | if (isDev) break |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | if (!isExport) { |
| 57 | it('should normalize repeated slashes in redirects correctly', async () => { |