-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8869 from LedgerHQ/support/qaa-415_detox_account_…
…name_persist [QAA-415][Detox][Speculos] Account name persist after restart
- Loading branch information
Showing
4 changed files
with
67 additions
and
1 deletion.
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
45 changes: 45 additions & 0 deletions
45
apps/ledger-live-mobile/e2e/specs/speculos/account/accountRename.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,45 @@ | ||
import { launchApp } from "../../../helpers"; | ||
import { Application } from "../../../page"; | ||
import { CLI } from "../../../utils/cliUtils"; | ||
import { Account } from "@ledgerhq/live-common/e2e/enum/Account"; | ||
import { device } from "detox"; | ||
|
||
const app = new Application(); | ||
const account = Account.BTC_NATIVE_SEGWIT_1; | ||
const newAccountName = "New Account Name"; | ||
|
||
$TmsLink("B2CQA-2996"); | ||
describe("Account name change", () => { | ||
beforeAll(async () => { | ||
await app.init({ | ||
speculosApp: account.currency.speculosApp, | ||
cliCommands: [ | ||
async () => { | ||
return CLI.liveData({ | ||
currency: account.currency.currencyId, | ||
index: account.index, | ||
appjson: app.userdataPath, | ||
add: true, | ||
}); | ||
}, | ||
], | ||
}); | ||
await app.portfolio.waitForPortfolioPageToLoad(); | ||
}); | ||
|
||
it("should persist Account name change after app restart", async () => { | ||
await app.accounts.openViaDeeplink(); | ||
await app.common.expectAccountName(account.accountName); | ||
await app.common.goToAccountByName(account.accountName); | ||
await app.account.openAccountSettings(); | ||
await app.account.selectAccountRename(); | ||
await app.account.enterNewAccountName(newAccountName); | ||
await app.accounts.openViaDeeplink(); | ||
await app.common.expectAccountName(newAccountName); | ||
await device.terminateApp(); | ||
await launchApp(); | ||
await app.portfolio.waitForPortfolioPageToLoad(); | ||
await app.accounts.openViaDeeplink(); | ||
await app.common.expectAccountName(newAccountName); | ||
}); | ||
}); |
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
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