Skip to content

Commit e3c50b4

Browse files
committed
fix(test): scope selector to main
1 parent b584f0c commit e3c50b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/e2e/settings-profile.test.ts

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ test('Users can update their profile photo', async ({ page, login }) => {
5757
await page.goto('/settings/profile')
5858

5959
const beforeSrc = await page
60+
.getByRole('main')
6061
.getByRole('img', { name: user.name ?? user.username })
6162
.getAttribute('src')
6263

@@ -76,6 +77,7 @@ test('Users can update their profile photo', async ({ page, login }) => {
7677
).toHaveURL(`/settings/profile`)
7778

7879
const afterSrc = await page
80+
.getByRole('main')
7981
.getByRole('img', { name: user.name ?? user.username })
8082
.getAttribute('src')
8183

0 commit comments

Comments
 (0)