Skip to content

Commit

Permalink
Merge pull request #1872 from oasisprotocol/lw/type-enter
Browse files Browse the repository at this point in the history
Update text for delete account
  • Loading branch information
lukaw3d authored Apr 6, 2024
2 parents c610ca8 + f34610a commit 4106814
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .changelog/1872.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update text for delete account
2 changes: 1 addition & 1 deletion playwright/tests/toolbar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ test.describe('My Accounts tab', () => {
await page.getByText('Delete Account').click()
await page.getByTestId('account-delete-confirmation-input').fill('foo')
await page.getByRole('button', { name: 'Yes, delete' }).click()
expect(page.getByText("Type 'delete'")).toBeVisible()
expect(page.getByText("Type 'delete'", { exact: true })).toBeVisible()
await page.getByTestId('account-delete-confirmation-input').fill('delete')
await page.getByRole('button', { name: 'Yes, delete' }).click()
await expect(page).not.toHaveURL(new RegExp(`/account/${mnemonicAddress0}`))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const DeleteAccount = ({ onCancel, onDelete, wallet }: DeleteAccountProps
<Paragraph fill textAlign="center">
{t(
'toolbar.settings.delete.inputHelp',
`This action cannot be undone. To continue please enter '{{confirmationKeyword}}' below.`,
`This action cannot be undone. To continue please type '{{confirmationKeyword}}' below.`,
{
confirmationKeyword: t('deleteForm.confirmationKeyword', 'delete'),
},
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@
"contacts": "Contacts",
"delete": {
"description": "Are you sure you want to delete the following account?",
"inputHelp": "This action cannot be undone. To continue please enter '{{confirmationKeyword}}' below.",
"inputHelp": "This action cannot be undone. To continue please type '{{confirmationKeyword}}' below.",
"title": "Delete Account",
"tooltip": "You must have at least one account at all times."
},
Expand Down

0 comments on commit 4106814

Please sign in to comment.