-
Notifications
You must be signed in to change notification settings - Fork 333
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
30da4cd
commit 2f98e98
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
apps/ledger-live-mobile/e2e/specs/speculos/receive/receive.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,38 @@ | ||
import { CLI } from "../../../utils/cliUtils"; | ||
import { Application } from "../../../page"; | ||
import { Account } from "@ledgerhq/live-common/e2e/enum/Account"; | ||
|
||
export async function runReceiveTest(account: Account, tmsLink: string) { | ||
const app = new Application(); | ||
|
||
describe(`Receive - ${account.currency.name}`, () => { | ||
beforeAll(async () => { | ||
await app.init({ | ||
speculosApp: account.currency.speculosApp, | ||
cliCommands: [ | ||
CLI.liveData({ | ||
currency: account.currency.currencyId, | ||
index: account.index, | ||
appjson: app.userdataPath, | ||
add: true, | ||
}), | ||
], | ||
}); | ||
await app.portfolio.waitForPortfolioPageToLoad(); | ||
}); | ||
|
||
$TmsLink(tmsLink); | ||
it(`receive on ${account.currency.name} (through scanning)`, async () => { | ||
await app.receive.openViaDeeplink(); | ||
await app.common.performSearch(account.currency.name); | ||
await app.receive.selectCurrency(account.currency.name); | ||
await app.receive.selectAccount(account.accountName); | ||
await app.receive.doNotVerifyAddress(); | ||
await app.receive.expectReceivePageIsDisplayed(account.currency.ticker, account.accountName); | ||
}); | ||
|
||
afterAll(async () => { | ||
await app?.common.removeSpeculos(); | ||
}); | ||
}); | ||
} |
4 changes: 4 additions & 0 deletions
4
apps/ledger-live-mobile/e2e/specs/speculos/receive/receiveBTC.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 { runReceiveTest } from "./receive"; | ||
import { Account } from "@ledgerhq/live-common/e2e/enum/Account"; | ||
|
||
runReceiveTest(Account.BTC_NATIVE_SEGWIT_1, "B2CQA-2559, B2CQA-2687"); |