Skip to content

Commit 279ff8c

Browse files
committed
fix e2e tests
1 parent 732a3da commit 279ff8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/e2e/notes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ test('Users can delete notes', async ({ page, login }) => {
6262
page.getByText('Your note has been deleted.', { exact: true }),
6363
).toBeVisible()
6464
await expect(page).toHaveURL(`/users/${user.username}/notes`)
65-
await expect(noteLinks).toHaveCount(countBefore)
65+
await expect(noteLinks).toHaveCount(countBefore - 1)
6666
})
6767

6868
function createNote() {

tests/e2e/settings-profile.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ test('Users can update their profile photo', async ({ page, login }) => {
6565
await expect(page).toHaveURL(`/settings/profile/photo`)
6666

6767
await page
68-
.getByRole('textbox', { name: /change/i })
68+
.getByRole('button', { name: /change/i })
6969
.setInputFiles('./tests/fixtures/images/user/kody.png')
7070

7171
await page.getByRole('button', { name: /save/i }).click()

0 commit comments

Comments
 (0)