From 13580cfb219c2e05d53276a784e4663b050d64c2 Mon Sep 17 00:00:00 2001 From: yande <110056475+Andepande@users.noreply.github.com> Date: Wed, 5 Jun 2024 20:33:13 +0800 Subject: [PATCH] test: fix Assertion only working on IOS (#9852) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## **Description** - As assertion only seems to work for IOS in one of our regression tests which fails regression builds in Bitrise - This fixes the failure ## **Related issues** Fixes: ## **Manual testing steps** 1. Go to this page... 2. 3. ## **Screenshots/Recordings** ### **Before** ### **After** ## **Pre-merge author checklist** - [ ] I’ve followed [MetaMask Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've completed the PR template to the best of my ability - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots. --- .../permission-system-delete-wallet.spec.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/e2e/specs/permission-systems/permission-system-delete-wallet.spec.js b/e2e/specs/permission-systems/permission-system-delete-wallet.spec.js index fd14a6f4805..8bfafe1f0d0 100644 --- a/e2e/specs/permission-systems/permission-system-delete-wallet.spec.js +++ b/e2e/specs/permission-systems/permission-system-delete-wallet.spec.js @@ -70,11 +70,13 @@ describe( await DeleteWalletModal.tapDeleteMyWalletButton(); await TestHelpers.delay(2000); await Assertions.checkIfVisible(OnboardingView.container); - await Assertions.checkIfVisible(await CommonView.toast); + if (device.getPlatform() === 'ios') { + await Assertions.checkIfVisible(await CommonView.toast); + } await Assertions.checkIfNotVisible(await CommonView.toast); await OnboardingView.tapCreateWallet(); - //Create new wallet + // Create new wallet await Assertions.checkIfVisible(MetaMetricsOptIn.container); await MetaMetricsOptIn.tapAgreeButton(); await Assertions.checkIfVisible(CreatePasswordView.container);