|
1 |
| -import { expect, test } from "@playwright/test"; |
| 1 | +// import { expect, test } from "@playwright/test"; |
2 | 2 |
|
3 |
| -test("Route modal and interception", async ({ page }) => { |
4 |
| - await page.goto("/"); |
5 |
| - await page.getByRole("link", { name: "Albums" }).click(); |
6 |
| - await page |
7 |
| - .getByRole("link", { name: "Song: I'm never gonna give you up Year: 1965" }) |
8 |
| - .click(); |
| 3 | +// test("Route modal and interception", async ({ page }) => { |
| 4 | +// await page.goto("/"); |
| 5 | +// await page.getByRole("link", { name: "Albums" }).click(); |
| 6 | +// await page |
| 7 | +// .getByRole("link", { name: "Song: I'm never gonna give you up Year: 1965" }) |
| 8 | +// .click(); |
9 | 9 |
|
10 |
| - await page.waitForURL( |
11 |
| - `/albums/Hold%20Me%20In%20Your%20Arms/I'm%20never%20gonna%20give%20you%20up`, |
12 |
| - ); |
| 10 | +// await page.waitForURL( |
| 11 | +// `/albums/Hold%20Me%20In%20Your%20Arms/I'm%20never%20gonna%20give%20you%20up`, |
| 12 | +// ); |
13 | 13 |
|
14 |
| - const modal = page.getByText("Modal", { exact: true }); |
15 |
| - await expect(modal).toBeVisible(); |
| 14 | +// const modal = page.getByText("Modal", { exact: true }); |
| 15 | +// await expect(modal).toBeVisible(); |
16 | 16 |
|
17 |
| - // Reload the page to load non intercepted modal |
18 |
| - await page.reload(); |
19 |
| - await page.waitForURL( |
20 |
| - `/albums/Hold%20Me%20In%20Your%20Arms/I'm%20never%20gonna%20give%20you%20up`, |
21 |
| - ); |
22 |
| - const notModal = page.getByText("Not Modal", { exact: true }); |
23 |
| - await expect(notModal).toBeVisible(); |
24 |
| -}); |
| 17 | +// // Reload the page to load non intercepted modal |
| 18 | +// await page.reload(); |
| 19 | +// await page.waitForURL( |
| 20 | +// `/albums/Hold%20Me%20In%20Your%20Arms/I'm%20never%20gonna%20give%20you%20up`, |
| 21 | +// ); |
| 22 | +// const notModal = page.getByText("Not Modal", { exact: true }); |
| 23 | +// await expect(notModal).toBeVisible(); |
| 24 | +// }); |
0 commit comments