From a42247c4c134ef80d4bd8789321e8c5d18ae24cd Mon Sep 17 00:00:00 2001 From: fede erbes Date: Thu, 29 Aug 2024 18:26:48 +0200 Subject: [PATCH] fix: e2e v0.41.0 (#543) * fix: missing send-input * fixed selectors for update password flow --------- Co-authored-by: DuskaT021 --- src/app/screens/sendRune/runeAmountSelector.tsx | 1 + tests/pages/wallet.ts | 4 ++-- tests/specs/tabSettings.spec.ts | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/app/screens/sendRune/runeAmountSelector.tsx b/src/app/screens/sendRune/runeAmountSelector.tsx index fea1e4543..86b36c135 100644 --- a/src/app/screens/sendRune/runeAmountSelector.tsx +++ b/src/app/screens/sendRune/runeAmountSelector.tsx @@ -133,6 +133,7 @@ function RuneAmountSelector({ handleAmountChange(e.target.value)} placeholder="0" infoPanel={ diff --git a/tests/pages/wallet.ts b/tests/pages/wallet.ts index 2b2ffe8f7..5c7725849 100644 --- a/tests/pages/wallet.ts +++ b/tests/pages/wallet.ts @@ -428,9 +428,9 @@ export default class Wallet { this.inputBTCURL = page.getByTestId('BTC URL'); this.inputFallbackBTCURL = page.getByTestId('Fallback BTC URL'); this.buttonUpdatePassword = page.getByRole('button', { name: 'Update Password' }); - this.errorMessage = page.getByRole('heading', { name: 'Incorrect password' }); + this.errorMessage = page.getByText(/incorrect password/i); this.headerNewPassword = page.getByRole('heading', { name: 'Enter your new password' }); - this.infoUpdatePassword = page.getByRole('heading', { name: 'Password successfully updated' }); + this.infoUpdatePassword = page.getByText(/password successfully updated/i); this.buttonCurrency = page.getByRole('button', { name: 'Fiat Currency' }); this.buttonShowSeedphrase = page.getByRole('button', { name: 'Show Seedphrase' }); this.selectCurrency = page.getByTestId('currency-button'); diff --git a/tests/specs/tabSettings.spec.ts b/tests/specs/tabSettings.spec.ts index fef6ccd37..d814122cc 100644 --- a/tests/specs/tabSettings.spec.ts +++ b/tests/specs/tabSettings.spec.ts @@ -90,10 +90,10 @@ test.describe('Settings Tab', () => { await expect(onboardingPage.buttonContinue).toBeEnabled(); await onboardingPage.buttonContinue.click(); await expect(onboardingPage.inputPassword).toBeVisible(); - await expect(onboardingPage.buttonContinue).toBeDisabled(); + await expect(wallet.buttonConfirm).toBeDisabled(); await onboardingPage.inputPassword.fill(`${strongPW}ABC`); - await expect(onboardingPage.buttonContinue).toBeEnabled(); - await onboardingPage.buttonContinue.click(); + await expect(wallet.buttonConfirm).toBeEnabled(); + await wallet.buttonConfirm.click(); await expect(wallet.infoUpdatePassword).toBeVisible(); }); test('Show Seedphrase', async ({ page, extensionId }) => {