Skip to content

Commit

Permalink
import all test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisleewilcox committed May 10, 2024
1 parent 2005dc6 commit 94aaeee
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions e2e/specs/assets/token-detection-import-all.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
'use strict';
import { loginToApp } from '../../viewHelper';
import FixtureBuilder from '../../fixtures/fixture-builder';
import {
loadFixture,
startFixtureServer,
stopFixtureServer,
} from '../../fixtures/fixture-helper';
import { CustomNetworks } from '../../resources/networks.e2e';
import TestHelpers from '../../helpers';
import FixtureServer from '../../fixtures/fixture-server';
import { getFixturesServerPort } from '../../fixtures/utils';
import { SmokeCore } from '../../tags';
import WalletView from '../../pages/WalletView';
import DetectedTokensView from '../../pages/assets/DetectedTokensView';

const fixtureServer = new FixtureServer();

describe(SmokeCore('Import all tokens detected'), () => {
beforeAll(async () => {
await TestHelpers.reverseServerPort();
const fixture = new FixtureBuilder()
.withNetworkController(CustomNetworks.Tenderly)
.build();
await startFixtureServer(fixtureServer);
await loadFixture(fixtureServer, { fixture });
await device.launchApp({
launchArgs: { fixtureServerPort: `${getFixturesServerPort()}` },
});
await loginToApp();
});

afterAll(async () => {
await stopFixtureServer(fixtureServer);
});

it('should import all tokens detected', async () => {
await WalletView.tapNewTokensFound();
await DetectedTokensView.tapImport();
await TestHelpers.delay(5000);
});

it('should land on wallet view after tokens detected', async () => {});

Check failure on line 43 in e2e/specs/assets/token-detection-import-all.spec.js

View workflow job for this annotation

GitHub Actions / scripts (lint)

Unexpected empty async arrow function

it('should show toast alert for tokens imported', async () => {});

Check failure on line 45 in e2e/specs/assets/token-detection-import-all.spec.js

View workflow job for this annotation

GitHub Actions / scripts (lint)

Unexpected empty async arrow function
});

0 comments on commit 94aaeee

Please sign in to comment.