Skip to content

Commit

Permalink
test: fix userdata
Browse files Browse the repository at this point in the history
  • Loading branch information
abdurrahman-ledger committed Jan 3, 2025
1 parent 54d69b8 commit 85c1661
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/ledger-live-mobile/e2e/page/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ export class Application {
public transfertMenu = new TransfertMenuDrawer();
public walletTabNavigator = new WalletTabNavigatorPage();

constructor() {
constructor(userdata?: string) {
if (!getEnv("MOCK")) {
// Create a temporary userdata file for Speculos tests
const originalUserdata = "skip-onboarding";
const originalUserdata = userdata || "skip-onboarding";
this.userdataSpeculos = `temp-userdata-${Date.now()}`;
this.userdataPath = getUserdataPath(this.userdataSpeculos);
const originalFilePath = getUserdataPath(originalUserdata);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { Account } from "@ledgerhq/live-common/e2e/enum/Account";
import { Application } from "../../../page";

const app = new Application();
const app = new Application("EthAccountXrpAccountReadOnlyFalse");
const account = Account.ETH_1;

describe("Receive Flow", () => {
beforeAll(async () => {
app.userdataSpeculos = "EthAccountXrpAccountReadOnlyFalse";
await app.init({
speculosApp: account.currency.speculosApp,
});
Expand Down

0 comments on commit 85c1661

Please sign in to comment.