diff --git a/app/components/Views/confirmations/components/WatchAssetRequest/index.js b/app/components/Views/confirmations/components/WatchAssetRequest/index.js index 029aa4ada3c..553ea7c2d07 100644 --- a/app/components/Views/confirmations/components/WatchAssetRequest/index.js +++ b/app/components/Views/confirmations/components/WatchAssetRequest/index.js @@ -152,7 +152,7 @@ const WatchAssetRequest = ({ const { address, symbol, decimals, standard } = asset; return ( - + { + beforeAll(async () => { + jest.setTimeout(170000); + await TestHelpers.reverseServerPort(); + }); + + it('Should Import ERC20 Token via Dapp', async () => { + await withFixtures( + { + dapp: true, + fixture: new FixtureBuilder() + .withGanacheNetwork() + .withPermissionControllerConnectedToTestDapp() + .build(), + restartDevice: true, + ganacheOptions: defaultGanacheOptions, + smartContract: ERC20_CONTRACT, + }, + async ({ contractRegistry }) => { + const hstAddress = await contractRegistry.getContractAddress( + ERC20_CONTRACT, + ); + await loginToApp(); + + // Navigate to the browser screen + await TabBarComponent.tapBrowser(); + await TestDApp.navigateToTestDappWithContract({ + contractAddress: hstAddress, + }); + await TestHelpers.delay(3000); // Because loading the dapp is slow on CI + + await TestDApp.tapAddERC20TokenToWalletButton(); + await Assertions.checkIfVisible(AssetWatchBottomSheet.container); + await AssetWatchBottomSheet.tapAddTokenButton(); + await Assertions.checkIfNotVisible(AssetWatchBottomSheet.container); + + await TabBarComponent.tapWallet(); + await Assertions.checkIfVisible(WalletView.tokenInWallet('100 TST')); + }, + ); + }); +}); diff --git a/e2e/specs/wallet/incoming-transactions.spec.js b/e2e/specs/wallet/incoming-transactions.spec.js index 00740c4d67d..5074d3f24ac 100644 --- a/e2e/specs/wallet/incoming-transactions.spec.js +++ b/e2e/specs/wallet/incoming-transactions.spec.js @@ -83,7 +83,7 @@ describe(SmokeCore('Incoming Transactions'), () => { await TestHelpers.reverseServerPort(); }); - it('displays standard incoming transaction', async () => { + xit('displays standard incoming transaction', async () => { await withFixtures( { fixture: new FixtureBuilder().build(),