mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
new test t3w1 create wallet
This commit is contained in:
65
suite/e2e/tests/onboarding/t3w1/t3w1-create-wallet.test.ts
Normal file
65
suite/e2e/tests/onboarding/t3w1/t3w1-create-wallet.test.ts
Normal file
@@ -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();
|
||||
},
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user