fix(ui): align semantic headings contrast and Settings panels
This commit is contained in:
@@ -54,6 +54,8 @@ beforeEach(() => {
|
||||
test("requires explicit confirmation before removing your own admin role", async () => {
|
||||
renderPage([{ id: "me", email: "me@example.com", userName: "me", roles: ["Admin"], emailConfirmed: true, isCurrentUser: true, canRemoveAdmin: true }]);
|
||||
|
||||
expect(screen.getByRole("heading", { name: "Users", level: 2 })).toBeInTheDocument();
|
||||
|
||||
fireEvent.click(await screen.findByRole("button", { name: "Remove admin" }));
|
||||
expect(await screen.findByText(/you will immediately lose access/i)).toBeInTheDocument();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user