mirror of
https://github.com/zhigang1992/xverse-web-extension.git
synced 2026-04-30 05:35:53 +08:00
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:
@@ -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={
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user