From 998950fdfb5983674658a610cf28cc1617ec6feb Mon Sep 17 00:00:00 2001 From: evgenySL Date: Thu, 19 Feb 2026 15:53:41 +0100 Subject: [PATCH] new test t3w1 create wallet --- .../t3w1/t3w1-create-wallet.test.ts | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 suite/e2e/tests/onboarding/t3w1/t3w1-create-wallet.test.ts diff --git a/suite/e2e/tests/onboarding/t3w1/t3w1-create-wallet.test.ts b/suite/e2e/tests/onboarding/t3w1/t3w1-create-wallet.test.ts new file mode 100644 index 0000000000..992ed01ea8 --- /dev/null +++ b/suite/e2e/tests/onboarding/t3w1/t3w1-create-wallet.test.ts @@ -0,0 +1,65 @@ +import { TestCategory, TestPriority } from '@trezor/e2e-utils'; + +import { test } from '../../../support/fixtures'; +import { createTestAnnotation } from '../../../support/reporters/annotations'; + +test.describe('Onboarding - create wallet', { tag: ['@T3W1'] }, () => { + test.use({ setupEmulator: false }); + test.beforeEach(async ({ onboardingPage }) => { + await onboardingPage.disableNecessaryFirmwareChecks(); + }); + + test( + 'Success (Shamir backup)', + { + annotation: createTestAnnotation({ + testCase: + 'Verify that a user can successfully create a wallet during the onboarding process.', + category: TestCategory.Onboarding, + priority: TestPriority.Critical, + }), + }, + async ({ page, device, onboardingPage, devicePrompt, analyticsSection }) => { + await onboardingPage.optionallyDismissFwHashCheckError(); + await analyticsSection.continueButton.click(); + await devicePrompt.allowConnectToTrezor(); + await onboardingPage.enterTHPPairingCode(); + await page.getByTestId('@analytics/continue-button').click(); + await onboardingPage.firmware.continueThroughFirmware(); + await page.waitForTimeout(500); + await onboardingPage.tutorial.skip(); + + // Create wallet with Shamir backup + await onboardingPage.createWalletButton.click(); + await onboardingPage.selectSeedType('shamir-advanced'); + + // Accept ToS + await devicePrompt.confirmOnDevicePromptIsShown(); + await device.pressYes(); + + // Confirm wallet created + await devicePrompt.confirmOnDevicePromptIsShown(); + await device.pressYes(); + + await onboardingPage.createBackupButton.click(); + + // Create backup with Shamir shares and threshold + const shares = 3; + const threshold = 2; + + // await page.pause(); + + await onboardingPage.backup.passThroughShamirBackup(shares, threshold); + + // Set PIN + await onboardingPage.pin.setPinButton.click(); + await devicePrompt.confirmOnDevicePromptIsShown(); + await device.pressYes(); + await device.selectNumberOfWords(12); + await device.selectNumberOfWords(12); + + await devicePrompt.confirmOnDevicePromptIsShown(); + await device.pressYes(); + }, + ); +});