diff --git a/packages/suite-desktop-core/e2e/support/pageActions/dashboardActions.ts b/packages/suite-desktop-core/e2e/support/pageActions/dashboardActions.ts index 6dcc5734ede..33cadf53745 100644 --- a/packages/suite-desktop-core/e2e/support/pageActions/dashboardActions.ts +++ b/packages/suite-desktop-core/e2e/support/pageActions/dashboardActions.ts @@ -122,11 +122,11 @@ export class DashboardActions { } @step() - async addUnusedHiddenWallet(passphrase: string) { - await this.addHiddenWallet(passphrase); + async addUnusedHiddenWallet(passphrase: string, options?: { skipDiscovery?: boolean }) { + await this.addHiddenWallet(passphrase, options); await this.page .getByTestId('@passphrase-confirmation/step1-open-unused-wallet-button') - .click(); + .click({ timeout: 10_000 }); await this.page.getByTestId('@passphrase-confirmation/step2-button').click(); await this.passphraseInput.fill(passphrase); await this.passphraseSubmitButton.click(); diff --git a/packages/suite-desktop-core/e2e/tests/backup/t2t1-fail.test.ts b/packages/suite-desktop-core/e2e/tests/backup/t2t1-fail.test.ts index 292533a4f61..7a98f933eff 100644 --- a/packages/suite-desktop-core/e2e/tests/backup/t2t1-fail.test.ts +++ b/packages/suite-desktop-core/e2e/tests/backup/t2t1-fail.test.ts @@ -14,7 +14,8 @@ test.describe('Backup fail', { tag: ['@group=device-management'] }, () => { await analytics.interceptAnalytics(); }); - test('Device disconnected during action', async ({ + //TEST: #17241 Fix unstable test + test.skip('Device disconnected during action', async ({ page, analytics, onboardingPage, @@ -31,7 +32,8 @@ test.describe('Backup fail', { tag: ['@group=device-management'] }, () => { await trezorUserEnvLink.pressYes(); await trezorUserEnvLink.stopEmu(); - await expect(page.getByTestId('@backup/no-device')).toBeVisible(); + // This screen is not always visible. Sometimes it goes directly to '@backup/error-message' + // await expect(page.getByTestId('@backup/no-device')).toBeVisible(); await trezorUserEnvLink.startEmu(); diff --git a/packages/suite-desktop-core/e2e/tests/passphrase/passphrase-numbering.test.ts b/packages/suite-desktop-core/e2e/tests/passphrase/passphrase-numbering.test.ts index 09d1c934f47..36476ca43b3 100644 --- a/packages/suite-desktop-core/e2e/tests/passphrase/passphrase-numbering.test.ts +++ b/packages/suite-desktop-core/e2e/tests/passphrase/passphrase-numbering.test.ts @@ -2,24 +2,22 @@ import { expect, test } from '../../support/fixtures'; test.describe('Passphrase numbering', { tag: ['@group=passphrase'] }, () => { test.use({ emulatorSetupConf: { passphrase_protection: true } }); - test.beforeEach(async ({ trezorUserEnvLink, onboardingPage, dashboardPage }) => { - await trezorUserEnvLink.applySettings({ passphrase_always_on_device: false }); - + test.beforeEach(async ({ onboardingPage, dashboardPage }) => { await onboardingPage.completeOnboarding(); await dashboardPage.discoveryShouldFinish(); }); test('hidden wallet numbering', async ({ dashboardPage }) => { - const passphraseOne = 'taxation is theft'; - const passphraseTwo = 'meow'; - const passphraseThree = 'abc'; + const passphraseOne = 'First passphrase'; + const passphraseTwo = 'Second passphrase'; + const passphraseThree = 'Third passphrase'; // Add two hidden wallets await dashboardPage.openDeviceSwitcher(); - await dashboardPage.addUnusedHiddenWallet(passphraseOne); + await dashboardPage.addUnusedHiddenWallet(passphraseOne, { skipDiscovery: true }); await dashboardPage.openDeviceSwitcher(); - await dashboardPage.addUnusedHiddenWallet(passphraseTwo); + await dashboardPage.addUnusedHiddenWallet(passphraseTwo, { skipDiscovery: true }); // assert that wallet labels are correct await dashboardPage.openDeviceSwitcher(); @@ -34,7 +32,7 @@ test.describe('Passphrase numbering', { tag: ['@group=passphrase'] }, () => { // add standard and another hidden wallet await dashboardPage.addStandardWallet(); await dashboardPage.openDeviceSwitcher(); - await dashboardPage.addUnusedHiddenWallet(passphraseThree); + await dashboardPage.addUnusedHiddenWallet(passphraseThree, { skipDiscovery: true }); // assert that wallet labels are correct await dashboardPage.openDeviceSwitcher();