Skip to content

Commit

Permalink
Merge branch 'main' into fix/swap-test-flakyness
Browse files Browse the repository at this point in the history
  • Loading branch information
cortisiko authored Jan 20, 2024
2 parents 7a3ccab + afcaa91 commit 3525d89
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions e2e/specs/assets/import-tokens.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});

0 comments on commit 3525d89

Please sign in to comment.