mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 07:54:22 +00:00
Add data-testid attributes for improved testing in modals
This commit is contained in:
@@ -31,10 +31,19 @@ const DeleteUserModal: React.FC<DeleteUserModalProps> = ({
|
||||
deleted.
|
||||
</Text>
|
||||
<Group justify="flex-end" mt="xl">
|
||||
<Button variant="default" onClick={onClose}>
|
||||
<Button
|
||||
variant="default"
|
||||
onClick={onClose}
|
||||
data-testid="cancel-delete-user-button"
|
||||
>
|
||||
Cancel
|
||||
</Button>
|
||||
<Button color="red" onClick={() => void onConfirm()} loading={loading}>
|
||||
<Button
|
||||
color="red"
|
||||
onClick={() => void onConfirm()}
|
||||
loading={loading}
|
||||
data-testid="confirm-delete-user-button"
|
||||
>
|
||||
Delete User
|
||||
</Button>
|
||||
</Group>
|
||||
|
||||
Reference in New Issue
Block a user