-
Notifications
You must be signed in to change notification settings - Fork 327
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
6eb2980
commit d695400
Showing
18 changed files
with
92 additions
and
53 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
51 changes: 0 additions & 51 deletions
51
apps/ledger-live-mobile/e2e/specs/speculos/addAccount.spec.ts
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
apps/ledger-live-mobile/e2e/specs/speculos/addAccount/AddAccount.ts
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,34 @@ | ||
import { Application } from "../../../page"; | ||
import { Currency } from "@ledgerhq/live-common/e2e/enum/Currency"; | ||
|
||
export async function runAddAccountTest(currency: Currency, tmsLink: string) { | ||
let app: Application; | ||
let deviceNumber: number; | ||
|
||
describe(`Add accounts - ${currency.name}`, () => { | ||
beforeAll(async () => { | ||
app = await Application.init("onboardingcompleted"); | ||
await app.portfolio.waitForPortfolioPageToLoad(); | ||
}); | ||
|
||
$TmsLink(tmsLink); | ||
it(`Perform an add account`, async () => { | ||
await app.addAccount.openViaDeeplink(); | ||
await app.common.performSearch(currency.name); | ||
await app.addAccount.selectCurrency(currency.currencyId); | ||
|
||
deviceNumber = await app.common.addSpeculos(currency.speculosApp.name); | ||
|
||
await app.addAccount.startAccountsDiscovery(); | ||
await app.addAccount.expectAccountDiscovery(currency.name, currency.currencyId); | ||
await app.addAccount.finishAccountsDiscovery(); | ||
await app.addAccount.tapSuccessCta(); | ||
await app.account.waitForAccountPageToLoad(currency.name); | ||
await app.account.expectAccountBalanceVisible(); | ||
}); | ||
|
||
afterAll(async () => { | ||
await app.common.removeSpeculos(deviceNumber); | ||
}); | ||
}); | ||
} |
4 changes: 4 additions & 0 deletions
4
apps/ledger-live-mobile/e2e/specs/speculos/addAccount/AddAccountADA.spec.ts
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,4 @@ | ||
import { runAddAccountTest } from "./AddAccount"; | ||
import { Currency } from "@ledgerhq/live-common/e2e/enum/Currency"; | ||
|
||
runAddAccountTest(Currency.ADA, "B2CQA-2500, B2CQA-2650, B2CQA-2678"); |
4 changes: 4 additions & 0 deletions
4
apps/ledger-live-mobile/e2e/specs/speculos/addAccount/AddAccountALGO.spec.ts
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,4 @@ | ||
import { runAddAccountTest } from "./AddAccount"; | ||
import { Currency } from "@ledgerhq/live-common/e2e/enum/Currency"; | ||
|
||
runAddAccountTest(Currency.ALGO, "B2CQA-2497, B2CQA-2653, B2CQA-2681"); |
4 changes: 4 additions & 0 deletions
4
apps/ledger-live-mobile/e2e/specs/speculos/addAccount/AddAccountATOM.spec.ts
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,4 @@ | ||
import { runAddAccountTest } from "./AddAccount"; | ||
import { Currency } from "@ledgerhq/live-common/e2e/enum/Currency"; | ||
|
||
runAddAccountTest(Currency.ATOM, "B2CQA-2501, B2CQA-2654, B2CQA-2682"); |
4 changes: 4 additions & 0 deletions
4
apps/ledger-live-mobile/e2e/specs/speculos/addAccount/AddAccountBCH.spec.ts
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,4 @@ | ||
import { runAddAccountTest } from "./AddAccount"; | ||
import { Currency } from "@ledgerhq/live-common/e2e/enum/Currency"; | ||
|
||
runAddAccountTest(Currency.BCH, "B2CQA-2498, B2CQA-2652, B2CQA-2680"); |
4 changes: 4 additions & 0 deletions
4
apps/ledger-live-mobile/e2e/specs/speculos/addAccount/AddAccountBTC.spec.ts
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,4 @@ | ||
import { runAddAccountTest } from "./AddAccount"; | ||
import { Currency } from "@ledgerhq/live-common/e2e/enum/Currency"; | ||
|
||
runAddAccountTest(Currency.BTC, "B2CQA-2499, B2CQA-2644, B2CQA-2672, B2CQA-786"); |
4 changes: 4 additions & 0 deletions
4
apps/ledger-live-mobile/e2e/specs/speculos/addAccount/AddAccountDOT.spec.ts
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,4 @@ | ||
import { runAddAccountTest } from "./AddAccount"; | ||
import { Currency } from "@ledgerhq/live-common/e2e/enum/Currency"; | ||
|
||
runAddAccountTest(Currency.DOT, "B2CQA-2504, B2CQA-2648, B2CQA-2676"); |
4 changes: 4 additions & 0 deletions
4
apps/ledger-live-mobile/e2e/specs/speculos/addAccount/AddAccountETC.spec.ts
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,4 @@ | ||
import { runAddAccountTest } from "./AddAccount"; | ||
import { Currency } from "@ledgerhq/live-common/e2e/enum/Currency"; | ||
|
||
runAddAccountTest(Currency.ETC, "B2CQA-2502, B2CQA-2646, B2CQA-2674"); |
4 changes: 4 additions & 0 deletions
4
apps/ledger-live-mobile/e2e/specs/speculos/addAccount/AddAccountETH.spec.ts
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,4 @@ | ||
import { runAddAccountTest } from "./AddAccount"; | ||
import { Currency } from "@ledgerhq/live-common/e2e/enum/Currency"; | ||
|
||
runAddAccountTest(Currency.ETH, "B2CQA-2503, B2CQA-2645, B2CQA-26736"); |
4 changes: 4 additions & 0 deletions
4
apps/ledger-live-mobile/e2e/specs/speculos/addAccount/AddAccountSOL.spec.ts
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,4 @@ | ||
import { runAddAccountTest } from "./AddAccount"; | ||
import { Currency } from "@ledgerhq/live-common/e2e/enum/Currency"; | ||
|
||
runAddAccountTest(Currency.SOL, "B2CQA-2642, B2CQA-2656, B2CQA-2684"); |
4 changes: 4 additions & 0 deletions
4
apps/ledger-live-mobile/e2e/specs/speculos/addAccount/AddAccountTON.spec.ts
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,4 @@ | ||
import { runAddAccountTest } from "./AddAccount"; | ||
import { Currency } from "@ledgerhq/live-common/e2e/enum/Currency"; | ||
|
||
runAddAccountTest(Currency.TON, "B2CQA-2643, B2CQA-2657, B2CQA-2685"); |
4 changes: 4 additions & 0 deletions
4
apps/ledger-live-mobile/e2e/specs/speculos/addAccount/AddAccountTRX.spec.ts
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,4 @@ | ||
import { runAddAccountTest } from "./AddAccount"; | ||
import { Currency } from "@ledgerhq/live-common/e2e/enum/Currency"; | ||
|
||
runAddAccountTest(Currency.TRX, "B2CQA-2508, B2CQA-2649, B2CQA-2677"); |
4 changes: 4 additions & 0 deletions
4
apps/ledger-live-mobile/e2e/specs/speculos/addAccount/AddAccountXLM.spec.ts
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,4 @@ | ||
import { runAddAccountTest } from "./AddAccount"; | ||
import { Currency } from "@ledgerhq/live-common/e2e/enum/Currency"; | ||
|
||
runAddAccountTest(Currency.XLM, "B2CQA-2506, B2CQA-2651, B2CQA-2679"); |
4 changes: 4 additions & 0 deletions
4
apps/ledger-live-mobile/e2e/specs/speculos/addAccount/AddAccountXRP.spec.ts
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,4 @@ | ||
import { runAddAccountTest } from "./AddAccount"; | ||
import { Currency } from "@ledgerhq/live-common/e2e/enum/Currency"; | ||
|
||
runAddAccountTest(Currency.XRP, "B2CQA-2505, B2CQA-2647, B2CQA-2675"); |
4 changes: 4 additions & 0 deletions
4
apps/ledger-live-mobile/e2e/specs/speculos/addAccount/AddAccountXTZ.spec.ts
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,4 @@ | ||
import { runAddAccountTest } from "./AddAccount"; | ||
import { Currency } from "@ledgerhq/live-common/e2e/enum/Currency"; | ||
|
||
runAddAccountTest(Currency.XTZ, "B2CQA-2507, B2CQA-2655, B2CQA-2683"); |
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