fix: update test to use getByRole

This commit is contained in:
Lucas Smith
2024-03-08 02:45:22 +00:00
parent 47b06fa290
commit ee35b4a24b
3 changed files with 9 additions and 5 deletions

View File

@ -115,7 +115,7 @@ export const DeleteAccountDialog = ({ className, user }: DeleteAccountDialogProp
data-testid="delete-account-confirmation-button"
disabled={hasTwoFactorAuthentication}
>
{isDeletingAccount ? 'Deleting account...' : 'Delete Account'}
{isDeletingAccount ? 'Deleting account...' : 'Confirm Deletion'}
</Button>
</DialogFooter>
</DialogContent>