diff --git a/.changelog/1988.trivial.md b/.changelog/1988.trivial.md new file mode 100644 index 0000000000..c23337bc38 --- /dev/null +++ b/.changelog/1988.trivial.md @@ -0,0 +1 @@ +Rename keyphrase to mnemonic diff --git a/cypress/e2e/create-wallet.cy.ts b/cypress/e2e/create-wallet.cy.ts index 26f4728324..d924ffd8f6 100644 --- a/cypress/e2e/create-wallet.cy.ts +++ b/cypress/e2e/create-wallet.cy.ts @@ -32,7 +32,7 @@ describe('Create wallet', () => { it('Should not be able to confirm with a different (valid) mnemonic', () => { cy.contains('mnemonic does not match').should('not.exist') - cy.findByPlaceholderText('Enter your keyphrase here').type( + cy.findByPlaceholderText('Enter your mnemonic here').type( 'abuse gown claw final toddler wedding sister parade useful typical spatial skate decrease bulk student manual cloth shove fat car little swamp tag ginger', { delay: 0 }, ) @@ -43,7 +43,7 @@ describe('Create wallet', () => { it('Should confirm mnemonic', () => { cy.findByRole('button', { name: /Send/ }).should('not.exist') cy.findByRole('button', { name: /Import my wallet/ }).click() - cy.findByPlaceholderText('Enter your keyphrase here').type(generatedMnemonic, { delay: 0 }) + cy.findByPlaceholderText('Enter your mnemonic here').type(generatedMnemonic, { delay: 0 }) cy.findByRole('button', { name: /Import my wallet/ }).click() cy.contains('mnemonic does not match').should('not.exist') cy.findByRole('checkbox', { name: /Create a profile/ }).uncheck({ force: true }) diff --git a/cypress/e2e/open-wallet.cy.ts b/cypress/e2e/open-wallet.cy.ts index 4d1713d613..99059e8924 100644 --- a/cypress/e2e/open-wallet.cy.ts +++ b/cypress/e2e/open-wallet.cy.ts @@ -26,22 +26,22 @@ describe('Open wallet', () => { }) it('Should reject invalid mnemonics', () => { - cy.findByPlaceholderText('Enter your keyphrase here').type('this is an invalid mnemonic') + cy.findByPlaceholderText('Enter your mnemonic here').type('this is an invalid mnemonic') cy.findByRole('button', { name: /Import my wallet/ }).click() - cy.findByText(/Invalid keyphrase/).should('be.visible') + cy.findByText(/Invalid mnemonic/).should('be.visible') }) it('Should accept valid mnemonic', () => { - cy.findByPlaceholderText('Enter your keyphrase here').type(mnemonic, { delay: 1 }) + cy.findByPlaceholderText('Enter your mnemonic here').type(mnemonic, { delay: 1 }) cy.findByRole('button', { name: /Import my wallet/ }).click() - cy.findByText(/Invalid keyphrase/).should('not.exist') + cy.findByText(/Invalid mnemonic/).should('not.exist') cy.findByRole('checkbox', { name: /Create a profile/ }).uncheck({ force: true }) cy.findByRole('button', { name: /Open/ }).click() cy.url().should('include', 'oasis1qqca0gplrfn63ljg9c833te7em36lkz0cv8djffh') }) it('Should open multiple accounts from mnemonic', () => { - cy.findByPlaceholderText('Enter your keyphrase here').type(mnemonic, { delay: 1 }) + cy.findByPlaceholderText('Enter your mnemonic here').type(mnemonic, { delay: 1 }) cy.findByRole('button', { name: /Import my wallet/ }).click() cy.findByRole('checkbox', { name: /Create a profile/ }).uncheck({ force: true }) cy.findAllByTestId('account-choice').should('have.length', 4) @@ -58,7 +58,7 @@ describe('Open wallet', () => { cy.findByRole('link', { name: /Mnemonic/ }).click() cy.url().should('include', '/open-wallet/mnemonic') - cy.findByPlaceholderText('Enter your keyphrase here').type(mnemonic, { delay: 1 }) + cy.findByPlaceholderText('Enter your mnemonic here').type(mnemonic, { delay: 1 }) cy.findByRole('button', { name: /Import my wallet/ }).click() cy.findByRole('checkbox', { name: /Create a profile/ }).uncheck({ force: true }) cy.findAllByTestId('account-choice').should('have.length', 4) diff --git a/cypress/e2e/scenario-account-switcher.cy.ts b/cypress/e2e/scenario-account-switcher.cy.ts index 61544d6af2..6d3f36760f 100644 --- a/cypress/e2e/scenario-account-switcher.cy.ts +++ b/cypress/e2e/scenario-account-switcher.cy.ts @@ -5,7 +5,7 @@ describe('Scenario : multiple accounts', () => { // Open account 1 through mnemonic cy.findByRole('link', { name: /Open wallet/ }).click() cy.findByRole('link', { name: /Mnemonic/ }).click() - cy.findByPlaceholderText('Enter your keyphrase here').type( + cy.findByPlaceholderText('Enter your mnemonic here').type( 'abuse gown claw final toddler wedding sister parade useful typical spatial skate decrease bulk student manual cloth shove fat car little swamp tag ginger', { delay: 0 }, ) diff --git a/cypress/e2e/scenario-transaction.cy.ts b/cypress/e2e/scenario-transaction.cy.ts index 620ee11594..e48880c7d8 100644 --- a/cypress/e2e/scenario-transaction.cy.ts +++ b/cypress/e2e/scenario-transaction.cy.ts @@ -26,7 +26,7 @@ describe('Scenario : from mnemonic', () => { cy.visit('/') cy.findByRole('link', { name: /Open wallet/ }).click() cy.findByRole('link', { name: /Mnemonic/ }).click() - cy.findByPlaceholderText('Enter your keyphrase here').type( + cy.findByPlaceholderText('Enter your mnemonic here').type( 'abuse gown claw final toddler wedding sister parade useful typical spatial skate decrease bulk student manual cloth shove fat car little swamp tag ginger', { delay: 1 }, ) diff --git a/playwright/tests/persist.spec.ts b/playwright/tests/persist.spec.ts index f953c7a849..fdb26e374c 100644 --- a/playwright/tests/persist.spec.ts +++ b/playwright/tests/persist.spec.ts @@ -29,7 +29,7 @@ test.describe('Persist', () => { test('Should persist multiple mnemonic accounts', async ({ page }) => { await test.step('Import from mnemonic', async () => { await page.goto('/open-wallet/mnemonic') - await page.getByPlaceholder('Enter your keyphrase here').fill(mnemonic) + await page.getByPlaceholder('Enter your mnemonic here').fill(mnemonic) await page.getByRole('button', { name: /Import my wallet/ }).click() await page.getByText('Create a profile').uncheck() await expect(page.getByText('One account selected')).toBeVisible({ timeout: 10_000 }) @@ -160,7 +160,7 @@ test.describe('Persist', () => { }) => { await page.goto('/open-wallet/mnemonic') - await page.getByPlaceholder('Enter your keyphrase here').fill(mnemonic) + await page.getByPlaceholder('Enter your mnemonic here').fill(mnemonic) await page.getByRole('button', { name: /Import my wallet/ }).click() await page.getByText('Create a profile').uncheck() await expect(page.getByText('One account selected')).toBeVisible({ timeout: 10_000 }) diff --git a/playwright/tests/preventSavingInputsToDisk/chromium.spec.ts b/playwright/tests/preventSavingInputsToDisk/chromium.spec.ts index 8912fd9dc4..655005dc18 100644 --- a/playwright/tests/preventSavingInputsToDisk/chromium.spec.ts +++ b/playwright/tests/preventSavingInputsToDisk/chromium.spec.ts @@ -23,7 +23,7 @@ test('Chromium expect mnemonic, privateKey, and password to NOT leak with preven }) => { await test.step('fill sensitive inputs and toggle visibility', async () => { await page.goto('/open-wallet/mnemonic') - await page.getByPlaceholder('Enter your keyphrase here').fill(mnemonic) + await page.getByPlaceholder('Enter your mnemonic here').fill(mnemonic) await page.getByRole('button', { name: /Import my wallet/ }).click() await expect(page.getByText('One account selected')).toBeVisible({ timeout: 10_000 }) await page.getByText('Create a profile').uncheck() diff --git a/playwright/tests/preventSavingInputsToDisk/firefox.spec.ts b/playwright/tests/preventSavingInputsToDisk/firefox.spec.ts index bbf837d66b..7349094b75 100644 --- a/playwright/tests/preventSavingInputsToDisk/firefox.spec.ts +++ b/playwright/tests/preventSavingInputsToDisk/firefox.spec.ts @@ -23,7 +23,7 @@ test('Firefox expect mnemonic, privateKey, and password to NOT leak with prevent }) => { await test.step('fill sensitive inputs (visibility pre-toggled)', async () => { await page.goto('/open-wallet/mnemonic') - await page.getByPlaceholder('Enter your keyphrase here').fill(mnemonic) + await page.getByPlaceholder('Enter your mnemonic here').fill(mnemonic) // Do not submit form. const tab2 = await context.newPage() diff --git a/playwright/tests/syncTabs.spec.ts b/playwright/tests/syncTabs.spec.ts index 95f14d4bb3..a901cb85c1 100644 --- a/playwright/tests/syncTabs.spec.ts +++ b/playwright/tests/syncTabs.spec.ts @@ -262,7 +262,7 @@ test.describe('syncTabs', () => { await page.getByTestId('network-selector').click() await page.getByRole('menuitem', { name: 'Testnet' }).click() - await page.getByPlaceholder('Enter your keyphrase here').fill(mnemonic) + await page.getByPlaceholder('Enter your mnemonic here').fill(mnemonic) await page.getByRole('button', { name: /Import my wallet/ }).click() await page.getByText('Create a profile').uncheck() await expect(page.getByText('One account selected')).toBeVisible({ timeout: 10_000 }) diff --git a/playwright/tests/toolbar.spec.ts b/playwright/tests/toolbar.spec.ts index 655c621947..4c547f6ff0 100644 --- a/playwright/tests/toolbar.spec.ts +++ b/playwright/tests/toolbar.spec.ts @@ -108,7 +108,7 @@ test.describe('My Accounts tab', () => { async function openAccountSelectorWithMultipleItems(page: Page) { await page.goto('/open-wallet/mnemonic') - await page.getByPlaceholder('Enter your keyphrase here').fill(mnemonic) + await page.getByPlaceholder('Enter your mnemonic here').fill(mnemonic) await page.getByRole('button', { name: /Import my wallet/ }).click() await page.getByText('Create a profile').uncheck() const uncheckedAccounts = page.getByRole('checkbox', { name: /oasis1/, checked: false }) diff --git a/src/app/components/MnemonicValidation/index.tsx b/src/app/components/MnemonicValidation/index.tsx index ee9535df40..ef2c25c52a 100644 --- a/src/app/components/MnemonicValidation/index.tsx +++ b/src/app/components/MnemonicValidation/index.tsx @@ -49,16 +49,16 @@ export function MnemonicValidation(props: Props) { >
-
{t('openWallet.mnemonic.header', 'Enter your keyphrase')}
+
{t('openWallet.mnemonic.header', 'Enter your mnemonic')}
{t( 'openWallet.mnemonic.instruction', - 'Enter all your keyphrase words below separated by spaces. Most keyphrases are made of either 24 or 12 words.', + 'Enter all your mnemonic words below separated by spaces. Most mnemonics are made of either 24 or 12 words.', )} ', () => { expect(container.firstChild).toMatchSnapshot() }) - it('can regenerate the keyphrase', () => { + it('can regenerate mnemonic', () => { const { getByText } = renderPage(store) fireEvent.click(getByText(/createWallet.newMnemonic/)) expect(generateMnemonicMock).toHaveBeenCalledTimes(1) diff --git a/src/app/pages/CreateWalletPage/index.tsx b/src/app/pages/CreateWalletPage/index.tsx index 57b55b9805..8a5fa8bbc1 100644 --- a/src/app/pages/CreateWalletPage/index.tsx +++ b/src/app/pages/CreateWalletPage/index.tsx @@ -131,19 +131,19 @@ export function CreateWalletPage(props: CreateWalletProps) { {t( 'createWallet.doNotShare', - 'Never share your keyphrase, anyone with your keyphrase can access your wallet and your tokens.', + 'Never share your mnemonic, anyone with your mnemonic can access your wallet and your tokens.', )} setChecked(event.target.checked)} diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json index f6ebdbb1b8..b8b368978c 100644 --- a/src/locales/de/translation.json +++ b/src/locales/de/translation.json @@ -83,8 +83,8 @@ "validators": "Validatoren" }, "createWallet": { - "confirmSaved": "Ich habe meine Keyphrase gespeichert.", - "doNotShare": "Gib niemals deine Keyphrase weiter, denn jeder, der deine Keyphrase hat, kann auf deine Wallet und deine Token zugreifen." + "confirmSaved": "Ich habe meine mnemonic gespeichert.", + "doNotShare": "Gib niemals deine mnemonic weiter, denn jeder, der deine mnemonic hat, kann auf deine Wallet und deine Token zugreifen." }, "delegations": { "activeDelegations": "Aktive Delegationen", diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index ff32d514e7..ea9b344a0a 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -122,9 +122,9 @@ "validators": "Validators" }, "createWallet": { - "confirmSaved": "I saved my keyphrase", - "doNotShare": "Never share your keyphrase, anyone with your keyphrase can access your wallet and your tokens.", - "instruction": "Save your keyphrase in the right order in a secure location, you will need it to open your wallet.", + "confirmSaved": "I saved my mnemonic", + "doNotShare": "Never share your mnemonic, anyone with your mnemonic can access your wallet and your tokens.", + "instruction": "Save your mnemonic in the right order in a secure location, you will need it to open your wallet.", "mnemonicMismatch": "Entered mnemonic does not match.", "newMnemonic": "Generate a new mnemonic", "thisIsYourPhrase": "This is your mnemonic" @@ -320,11 +320,11 @@ "privateKey": "Private key" }, "mnemonic": { - "enterPhraseHere": "Enter your keyphrase here", - "error": "Invalid keyphrase. Please make sure to input the words in the right order, all lowercase.", - "header": "Enter your keyphrase", + "enterPhraseHere": "Enter your mnemonic here", + "error": "Invalid mnemonic. Please make sure to input the words in the right order, all lowercase.", + "header": "Enter your mnemonic", "import": "Import my wallet", - "instruction": "Enter all your keyphrase words below separated by spaces. Most keyphrases are made of either 24 or 12 words." + "instruction": "Enter all your mnemonic words below separated by spaces. Most mnemonics are made of either 24 or 12 words." }, "privateKey": { "enterPrivateKeyHere": "Enter your private key here",