(browser, conflicts)
| 48 | } |
| 49 | |
| 50 | async function containConflictsError(browser, conflicts) { |
| 51 | await retry(async () => { |
| 52 | await waitForRedbox(browser) |
| 53 | if (process.env.IS_TURBOPACK_TEST) { |
| 54 | expect(await getRedboxDescription(browser)).toContain( |
| 55 | 'App Router and Pages Router both match path:' |
| 56 | ) |
| 57 | } |
| 58 | |
| 59 | if (!process.env.IS_TURBOPACK_TEST) { |
| 60 | for (const pair of conflicts) { |
| 61 | expect(await getRedboxSource(browser)).toContain( |
| 62 | `"${pair[0]}" - "${pair[1]}"` |
| 63 | ) |
| 64 | } |
| 65 | } |
| 66 | }) |
| 67 | } |
| 68 | |
| 69 | if (isNextDev) { |
| 70 | it('should show error overlay for /another', async () => { |
no test coverage detected