MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / importWalletWithRecoveryPhrase

Function importWalletWithRecoveryPhrase

e2e/viewHelper.js:49–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47};
48
49export const importWalletWithRecoveryPhrase = async () => {
50 // tap on import seed phrase button
51 await Assertions.checkIfVisible(OnboardingCarouselView.container);
52 await OnboardingCarouselView.tapOnGetStartedButton();
53 await OnboardingView.tapImportWalletFromSeedPhrase();
54
55 await MetaMetricsOptIn.tapAgreeButton();
56 await TestHelpers.delay(3500);
57 await acceptTermOfUse();
58 // should import wallet with secret recovery phrase
59 await ImportWalletView.clearSecretRecoveryPhraseInputBox();
60 await ImportWalletView.enterSecretRecoveryPhrase(validAccount.seedPhrase);
61 await ImportWalletView.enterPassword(validAccount.password);
62 await ImportWalletView.reEnterPassword(validAccount.password);
63
64 // Should dismiss Automatic Security checks screen
65 await TestHelpers.delay(3500);
66 await OnboardingSuccessView.tapDone();
67 await EnableAutomaticSecurityChecksView.isVisible();
68 await EnableAutomaticSecurityChecksView.tapNoThanks();
69
70 // should dismiss the onboarding wizard
71 // dealing with flakiness on bitrise.
72 await TestHelpers.delay(1000);
73 try {
74 await Assertions.checkIfVisible(OnboardingWizardModal.stepOneContainer);
75 await OnboardingWizardModal.tapNoThanksButton();
76 await Assertions.checkIfNotVisible(OnboardingWizardModal.stepOneContainer);
77 } catch {
78 //
79 }
80
81 // should tap on the close button to dismiss the whats new modal
82 await TestHelpers.delay(2500);
83 try {
84 await WhatsNewModal.isVisible();
85 await WhatsNewModal.tapCloseButton();
86 } catch {
87 //
88 }
89};
90
91export const CreateNewWallet = async () => {
92 //'should create new wallet'

Calls 15

acceptTermOfUseFunction · 0.85
tapOnGetStartedButtonMethod · 0.80
tapAgreeButtonMethod · 0.80
delayMethod · 0.80
tapDoneMethod · 0.80
checkIfVisibleMethod · 0.45
enterPasswordMethod · 0.45
reEnterPasswordMethod · 0.45
isVisibleMethod · 0.45

Tested by

no test coverage detected