()
| 47 | }; |
| 48 | |
| 49 | export 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 | |
| 91 | export const CreateNewWallet = async () => { |
| 92 | //'should create new wallet' |
no test coverage detected