diff --git a/site/src/components/Dialogs/DeleteDialog/DeleteDialog.tsx b/site/src/components/Dialogs/DeleteDialog/DeleteDialog.tsx index e4246d689d..89fef1df95 100644 --- a/site/src/components/Dialogs/DeleteDialog/DeleteDialog.tsx +++ b/site/src/components/Dialogs/DeleteDialog/DeleteDialog.tsx @@ -35,7 +35,9 @@ export const DeleteDialog: FC> = ({

Deleting this {entity} is irreversible!

{Boolean(info) &&

{info}

}

Are you sure you want to proceed?

-

Type {name} below to confirm.

+

+ Type “{name}” below to confirm. +

{ diff --git a/site/src/pages/UsersPage/UsersPage.test.tsx b/site/src/pages/UsersPage/UsersPage.test.tsx index cc1e965eb3..38e92024fe 100644 --- a/site/src/pages/UsersPage/UsersPage.test.tsx +++ b/site/src/pages/UsersPage/UsersPage.test.tsx @@ -66,9 +66,7 @@ const deleteUser = async (setupActionSpies: () => void) => { // Check if the confirm message is displayed const confirmDialog = await screen.findByRole("dialog"); - expect(confirmDialog).toHaveTextContent( - `Type ${MockUser2.username} below to confirm.`, - ); + expect(confirmDialog).toHaveTextContent(`Are you sure you want to proceed?`); // Confirm with text input const textField = screen.getByLabelText("Name of the user to delete");