Skip to content

Commit

Permalink
fix: e2e v0.41.0 (#543)
Browse files Browse the repository at this point in the history
* fix: missing send-input

* fixed selectors for update password flow

---------

Co-authored-by: DuskaT021 <[email protected]>
  • Loading branch information
fedeerbes and DuskaT021 authored Aug 29, 2024
1 parent fda4bb2 commit a42247c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/app/screens/sendRune/runeAmountSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand Down
4 changes: 2 additions & 2 deletions tests/pages/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
6 changes: 3 additions & 3 deletions tests/specs/tabSettings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down

0 comments on commit a42247c

Please sign in to comment.