-
-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(suite-native): e2e import tests
- Loading branch information
Showing
5 changed files
with
117 additions
and
120 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 |
---|---|---|
@@ -1 +1 @@ | ||
jest.retryTimes(2); | ||
jest.retryTimes(2, { logErrorsBeforeRetry: true }); |
This file was deleted.
Oops, something went wrong.
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,50 @@ | ||
import { openApp } from '../utils'; | ||
import { xpubs } from '../fixtures/xpubs'; | ||
import { onAccountImport } from '../pageObjects/accountImportActions'; | ||
import { onMyAssets } from '../pageObjects/myAssetsActions'; | ||
import { onOnboarding } from '../pageObjects/onboardingActions'; | ||
import { onTabBar } from '../pageObjects/tabBarActions'; | ||
|
||
describe('Import Bitcoin network accounts.', () => { | ||
beforeAll(async () => { | ||
await openApp({ newInstance: true }); | ||
await onOnboarding.finishOnboarding(); | ||
await onTabBar.navigateToMyAssets(); | ||
}); | ||
|
||
beforeEach(async () => { | ||
await onMyAssets.addAccount(); | ||
}); | ||
|
||
it('Import BTC SegWit account', async () => { | ||
await onAccountImport.importAccount({ | ||
networkSymbol: 'btc', | ||
xpub: xpubs.btc.segwit, | ||
accountName: 'BTC SegWit', | ||
}); | ||
}); | ||
|
||
it('Import BTC Legacy SegWit account', async () => { | ||
await onAccountImport.importAccount({ | ||
networkSymbol: 'btc', | ||
xpub: xpubs.btc.legacySegwit, | ||
accountName: 'BTC Legacy SegWit', | ||
}); | ||
}); | ||
|
||
it('Import BTC Taproot account', async () => { | ||
await onAccountImport.importAccount({ | ||
networkSymbol: 'btc', | ||
xpub: xpubs.btc.taproot, | ||
accountName: 'BTC Taproot', | ||
}); | ||
}); | ||
|
||
it('Import BTC Legacy account', async () => { | ||
await onAccountImport.importAccount({ | ||
networkSymbol: 'btc', | ||
xpub: xpubs.btc.legacy, | ||
accountName: 'BTC Legacy', | ||
}); | ||
}); | ||
}); |
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,65 @@ | ||
import { openApp } from '../utils'; | ||
import { xpubs } from '../fixtures/xpubs'; | ||
import { onAccountImport } from '../pageObjects/accountImportActions'; | ||
import { onMyAssets } from '../pageObjects/myAssetsActions'; | ||
import { onOnboarding } from '../pageObjects/onboardingActions'; | ||
import { onTabBar } from '../pageObjects/tabBarActions'; | ||
|
||
describe('Import accounts of other networks.', () => { | ||
beforeAll(async () => { | ||
await openApp({ newInstance: true }); | ||
await onOnboarding.finishOnboarding(); | ||
await onTabBar.navigateToMyAssets(); | ||
}); | ||
|
||
beforeEach(async () => { | ||
await onMyAssets.addAccount(); | ||
}); | ||
|
||
it('Import LTC account', async () => { | ||
await onAccountImport.importAccount({ | ||
networkSymbol: 'ltc', | ||
xpub: xpubs.ltc, | ||
accountName: 'Litecoin SegWit', | ||
}); | ||
}); | ||
|
||
it('Import ZCash account', async () => { | ||
await onAccountImport.importAccount({ | ||
networkSymbol: 'zec', | ||
xpub: xpubs.zec, | ||
accountName: 'Zcash #1', | ||
}); | ||
}); | ||
|
||
it('Import DOGE account', async () => { | ||
await onAccountImport.importAccount({ | ||
networkSymbol: 'doge', | ||
xpub: xpubs.doge, | ||
accountName: 'Dogecoin #1', | ||
}); | ||
}); | ||
|
||
it('Import Cardano account', async () => { | ||
await onAccountImport.importAccount({ | ||
networkSymbol: 'ada', | ||
xpub: xpubs.ada, | ||
accountName: 'Cardano #1', | ||
}); | ||
}); | ||
it('Import XRP account', async () => { | ||
await onAccountImport.importAccount({ | ||
networkSymbol: 'xrp', | ||
xpub: xpubs.xrp, | ||
accountName: 'Ripple #1', | ||
}); | ||
}); | ||
|
||
it('Import ETH account', async () => { | ||
await onAccountImport.importAccount({ | ||
networkSymbol: 'eth', | ||
xpub: xpubs.eth, | ||
accountName: 'Ethereum #1', | ||
}); | ||
}); | ||
}); |
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