Skip to content

Commit

Permalink
1401 restore key descriptions recreate (#1408)
Browse files Browse the repository at this point in the history
Signed-off-by: Simi Hunjan <[email protected]>
  • Loading branch information
SimiHunjan authored Dec 21, 2024
1 parent 2cc91fa commit 6e9d6a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions automation/tests/settingsTests.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ test.describe('Settings tests', () => {
await settingsPage.clickOnNicknameContinueButton();

const toastMessage = await registrationPage.getToastMessage();
expect(toastMessage).toBe('Key Pair saved');
expect(toastMessage).toBe('Key pair saved');

// key pair was successfully restored, so we increment the index
await settingsPage.incrementIndex();
Expand Down Expand Up @@ -115,7 +115,7 @@ test.describe('Settings tests', () => {
await settingsPage.clickOnNicknameContinueButton();

const toastMessage = await registrationPage.getToastMessage();
expect(toastMessage).toBe('Key Pair saved');
expect(toastMessage).toBe('Key pair saved');

// key pair was successfully restored, so we increment the index
await settingsPage.incrementIndex();
Expand Down
8 changes: 4 additions & 4 deletions front-end/src/renderer/pages/RestoreKey/RestoreKey.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const handleSaveKey = async () => {
user.recoveryPhrase = null;
await user.refetchUserState();
toast.success('Key Pair saved');
toast.success('Key pair saved');
router.push({ name: 'settingsKeys' });
} catch (error) {
toast.error(getErrorMessage(error, 'Failed to store private key'));
Expand Down Expand Up @@ -292,7 +292,7 @@ watch(step, async newStep => {
v-focus-first-input
>
<h1 class="text-display text-bold text-center">Provide Index of Key</h1>
<p class="text-main mt-5 text-center">Please enter the index of the key</p>
<p class="text-main mt-5 text-center">Enter the index of the private key you want to generate from the recovery phrase</p>
<div
class="mt-5 w-100 d-flex flex-column justify-content-center align-items-center gap-4"
>
Expand Down Expand Up @@ -329,8 +329,8 @@ watch(step, async newStep => {
@submit.prevent="handleSaveKey"
v-focus-first-input
>
<h1 class="text-display text-bold text-center">Enter nickname</h1>
<p class="text-main mt-5 text-center">Please enter your nickname (optional)</p>
<h1 class="text-display text-bold text-center">Enter Key Nickname</h1>
<p class="text-main mt-5 text-center">You can optionally enter a nickname for the private key generated at {{ index }} to reference it more easily later</p>
<div
class="mt-5 w-100 d-flex flex-column justify-content-center align-items-center gap-4"
>
Expand Down

0 comments on commit 6e9d6a1

Please sign in to comment.