Skip to content

Commit 82e055b

Browse files
committed
fix query
1 parent 85ca421 commit 82e055b

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

exercises/02.linking/01.problem.achors/tests/router.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ test('Hello World! should be rendered', async ({ page }) => {
1010
test('About should be rendered', async ({ page }) => {
1111
await page.goto('/about')
1212

13-
const about = page.getByText('About')
13+
const about = page.getByRole('heading', { name: /about/i })
1414
await expect(about).toBeVisible({ timeout: 500 })
1515
})

exercises/02.linking/01.solution.achors/tests/router.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ test('Hello World! should be rendered', async ({ page }) => {
1010
test('About should be rendered', async ({ page }) => {
1111
await page.goto('/about')
1212

13-
const about = page.getByText('About')
13+
const about = page.getByRole('heading', { name: /about/i })
1414
await expect(about).toBeVisible({ timeout: 500 })
1515
})

exercises/02.linking/02.problem.links/tests/router.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ test('Hello World! should be rendered', async ({ page }) => {
1010
test('About should be rendered', async ({ page }) => {
1111
await page.goto('/about')
1212

13-
const about = page.getByText('About')
13+
const about = page.getByRole('heading', { name: /about/i })
1414
await expect(about).toBeVisible({ timeout: 500 })
1515
})

exercises/02.linking/02.solution.links/tests/router.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ test('Hello World! should be rendered', async ({ page }) => {
1010
test('About should be rendered', async ({ page }) => {
1111
await page.goto('/about')
1212

13-
const about = page.getByText('About')
13+
const about = page.getByRole('heading', { name: /about/i })
1414
await expect(about).toBeVisible({ timeout: 500 })
1515
})

exercises/02.linking/03.problem.custom-link/tests/router.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ test('Hello World! should be rendered', async ({ page }) => {
1010
test('About should be rendered', async ({ page }) => {
1111
await page.goto('/about')
1212

13-
const about = page.getByText('About')
13+
const about = page.getByRole('heading', { name: /about/i })
1414
await expect(about).toBeVisible({ timeout: 500 })
1515
})

exercises/02.linking/03.solution.custom-link/tests/router.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ test('Hello World! should be rendered', async ({ page }) => {
1010
test('About should be rendered', async ({ page }) => {
1111
await page.goto('/about')
1212

13-
const about = page.getByText('About')
13+
const about = page.getByRole('heading', { name: /about/i })
1414
await expect(about).toBeVisible({ timeout: 500 })
1515
})

0 commit comments

Comments
 (0)