-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2005dc6
commit 94aaeee
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 () => {}); | ||
|
||
it('should show toast alert for tokens imported', async () => {}); | ||
}); |