From afcaa91f0c16727becaf7405a1dd0df8c6699df1 Mon Sep 17 00:00:00 2001 From: Chris Wilcox Date: Fri, 19 Jan 2024 14:13:17 -0800 Subject: [PATCH] fix: E2E: Import SNX token (#8341) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## **Description** Update import-token.spec.js to import SNX token. This is due to flaky search results. ## **Related issues** Fixes: #8338 ## **Manual testing steps** 1. Go to this page... 2. 3. ## **Screenshots/Recordings** ### **Before** ### **After** ## **Pre-merge author checklist** - [x] I’ve followed [MetaMask Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [x] I've clearly explained what problem this PR is solving and how it is solved. - [x] I've linked related issues - [ ] I've included manual testing steps - [ ] I've included screenshots/recordings if applicable - [x] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] 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. - [ ] I’ve properly set the pull request status: - [ ] In case it's not yet "ready for review", I've set it to "draft". - [ ] In case it's "ready for review", I've changed it from "draft" to "non-draft". ## **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. --- e2e/specs/assets/import-tokens.spec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/e2e/specs/assets/import-tokens.spec.js b/e2e/specs/assets/import-tokens.spec.js index de062d7fa3e..ba531cdc500 100644 --- a/e2e/specs/assets/import-tokens.spec.js +++ b/e2e/specs/assets/import-tokens.spec.js @@ -33,20 +33,20 @@ describe(SmokeCore('Import Tokens'), () => { it('should add a token via token autocomplete', async () => { await WalletView.tapImportTokensButton(); - // Search for XRPL but select XRP20 - await ImportTokensView.typeInTokenName('XRPL'); + // Search for SNX + await ImportTokensView.typeInTokenName('SNX'); await TestHelpers.delay(2000); await ImportTokensView.tapOnToken(); // taps the first token in the returned list await TestHelpers.delay(500); await ImportTokensView.tapImportButton(); await WalletView.isVisible(); await TestHelpers.delay(8000); // to prevent flakey behavior in bitrise - await WalletView.isTokenVisibleInWallet('0 XRP'); + await WalletView.isTokenVisibleInWallet('0 SNX'); }); it('should hide token from Wallet view', async () => { - await WalletView.removeTokenFromWallet('0 XRP'); + await WalletView.removeTokenFromWallet('0 SNX'); await TestHelpers.delay(1500); - await WalletView.tokenIsNotVisibleInWallet('XRP'); + await WalletView.tokenIsNotVisibleInWallet('SNX'); }); });