Skip to content

fix: disable AccountForm when user is not allowed edit users #3649

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 23, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
🤯
  • Loading branch information
johnstcn committed Aug 23, 2022
commit 73fc7909cc9600153f8cafcb0ba25e0b5a9ea209
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe("AccountForm", () => {
// Then
const el = await screen.findByLabelText("Username")
expect(el).toBeEnabled()
const btn = await screen.findByRole("button")
const btn = await screen.findByRole("button", { name: /Update settings/i })
expect(btn).toBeEnabled()
})
})
Expand Down Expand Up @@ -58,7 +58,7 @@ describe("AccountForm", () => {
// Then
const el = await screen.findByLabelText("Username")
expect(el).toBeDisabled()
const btn = await screen.findByRole("button")
const btn = await screen.findByRole("button", { name: /Update settings/i })
expect(btn).toBeDisabled()
})
})
Expand Down