Skip to content

Commit 73fc790

Browse files
committed
🤯
1 parent a8ad515 commit 73fc790

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/components/SettingsAccountForm/SettingsAccountForm.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe("AccountForm", () => {
3030
// Then
3131
const el = await screen.findByLabelText("Username")
3232
expect(el).toBeEnabled()
33-
const btn = await screen.findByRole("button")
33+
const btn = await screen.findByRole("button", { name: /Update settings/i })
3434
expect(btn).toBeEnabled()
3535
})
3636
})
@@ -58,7 +58,7 @@ describe("AccountForm", () => {
5858
// Then
5959
const el = await screen.findByLabelText("Username")
6060
expect(el).toBeDisabled()
61-
const btn = await screen.findByRole("button")
61+
const btn = await screen.findByRole("button", { name: /Update settings/i })
6262
expect(btn).toBeDisabled()
6363
})
6464
})

0 commit comments

Comments
 (0)