fix: e2e v0.41.0 (#543)

* fix: missing send-input

* fixed selectors for update password flow

---------

Co-authored-by: DuskaT021 <aleksa2601@gmail.com>
This commit is contained in:
fede erbes
2024-08-29 18:26:48 +02:00
committed by GitHub
parent fda4bb21fb
commit a42247c4c1
3 changed files with 6 additions and 5 deletions

View File

@@ -133,6 +133,7 @@ function RuneAmountSelector({
<Input
title={t('BTC.AMOUNT', { currency: useTokenValue ? getFtTicker(token) : fiatCurrency })}
value={displayAmount}
dataTestID="send-input"
onChange={(e) => handleAmountChange(e.target.value)}
placeholder="0"
infoPanel={

View File

@@ -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');

View File

@@ -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 }) => {