Skip to content

Commit 97da98f

Browse files
committed
03/02: add missing listitem role chain
1 parent 2ed5cf4 commit 97da98f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

exercises/03.guides/02.solution.test-data/tests/e2e/notes-list.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ test('displays all user notes', async ({ navigate, authenticate, page }) => {
1919

2020
await navigate('/users/:username/notes', { username: user.username })
2121

22-
const notes = page.getByRole('list', { name: 'Notes' }).getByRole('link')
22+
const notes = page
23+
.getByRole('list', { name: 'Notes' })
24+
.getByRole('listitem')
25+
.getByRole('link')
2326

2427
await expect(notes).toHaveText(['First note', 'Second note'])
2528
})

0 commit comments

Comments
 (0)