Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
adding in files that were removed in the rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ggilchrist-ledger committed Apr 14, 2022
1 parent f7444ec commit ef8ee12
Show file tree
Hide file tree
Showing 18 changed files with 660 additions and 179 deletions.
12 changes: 6 additions & 6 deletions e2e/engine/bridge/client.js → e2e/bridge/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { Platform } from "react-native";
import invariant from "invariant";
import { Subject } from "rxjs/Subject";
import type { AccountRaw } from "@ledgerhq/live-common/lib/types";
import { store } from "../../../src/context/LedgerStore";
import { importSettings } from "../../../src/actions/settings";
import { setAccounts } from "../../../src/actions/accounts";
import { acceptTerms } from "../../../src/logic/terms";
import accountModel from "../../../src/logic/accountModel";
import { navigate } from "../../../src/rootnavigation";
import { store } from "../../src/context/LedgerStore";
import { importSettings } from "../../src/actions/settings";
import { setAccounts } from "../../src/actions/accounts";
import { acceptTerms } from "../../src/logic/terms";
import accountModel from "../../src/logic/accountModel";
import { navigate } from "../../src/rootnavigation";

let ws: WebSocket;

Expand Down
8 changes: 4 additions & 4 deletions e2e/engine/bridge/server.js → e2e/bridge/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { Server } from "ws";
import path from "path";
import fs from "fs";
import type { E2EBridgeMessage } from "./client";
import { $waitFor } from "../utils";
import { NavigatorName } from "../../../src/const";
import { waitForElement } from "../helpers";
import { NavigatorName } from "../../src/const";

let wss: Server;

Expand Down Expand Up @@ -39,11 +39,11 @@ export async function loadConfig(

if (data.accounts.length) {
postMessage({ type: "importAccounts", payload: data.accounts });
await $waitFor("PortfolioAccountsList", -1, 10000);
// await $waitFor("PortfolioAccountsList", -1, 10000);
return;
}

await $waitFor("PortfolioEmptyAccount");
await waitForElement("PortfolioEmptyAccount");
}

function navigate(name: string) {
Expand Down
6 changes: 4 additions & 2 deletions e2e/config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"globalSetup": "./global-setup.js",
"globalTeardown": "./global-teardown.js",
"setupFilesAfterEnv": ["./setup.js"],
"testEnvironment": "./environment",
"testRunner": "jest-circus/runner",
"testTimeout": 300000,
"testRegex": "\\.spec\\.js$",
"reporters": ["detox/runners/jest/streamlineReporter"],
"verbose": true,
"setupFilesAfterEnv": ["./init.js"]
"verbose": true
}
2 changes: 0 additions & 2 deletions e2e/engine/flows/index.js

This file was deleted.

66 changes: 0 additions & 66 deletions e2e/engine/flows/onboarding.js

This file was deleted.

6 changes: 0 additions & 6 deletions e2e/engine/index.js

This file was deleted.

63 changes: 0 additions & 63 deletions e2e/engine/utils.js

This file was deleted.

10 changes: 0 additions & 10 deletions e2e/init.js

This file was deleted.

12 changes: 12 additions & 0 deletions e2e/models/passwordEntryPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import * as testHelpers from "../helpers";

export default class PasswordEntryPage {
static async enterPassword(password) {
await testHelpers.typeText("password-text-input", password);
}

static async login() {
await testHelpers.tapByText("Log in");
await testHelpers.delay(10000);
}
}
22 changes: 22 additions & 0 deletions e2e/models/settings/generalSettingsPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import * as testHelpers from "../../helpers";

export default class GeneralSettingsPage {
static async togglePassword() {
await testHelpers.scrollToElementById(
"password-settings-toggle",
"general-settings-scroll-view",
200,
);

await testHelpers.tap("password-settings-toggle");
}

static async enterNewPassword(passwordText) {
await testHelpers.typeText("password-text-input", passwordText);
await testHelpers.tap("Proceed");
}

static async isVisible() {
await testHelpers.verifyTextIsVisible("General");
}
}
7 changes: 7 additions & 0 deletions e2e/models/settings/settingsPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import * as testHelpers from "../../helpers";

export default class SettingsPage {
static async navigateToGeneralSettings() {
await testHelpers.tap("general-settings-card");
}
}
Loading

0 comments on commit ef8ee12

Please sign in to comment.