Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Security upgrade @ledgerhq/ledger-core from 6.10.0 to 6.14.5 #40

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Manny27nyc
Copy link
Owner

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to fix one or more vulnerable packages in the `yarn` dependencies of this project.

Changes included in this PR

  • Changes to the following files to upgrade the vulnerable dependencies to a fixed version:
    • package.json
    • yarn.lock

Note for zero-installs users

If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

Vulnerabilities that will be fixed

With an upgrade:
Severity Priority Score (*) Issue Breaking Change Exploit Maturity
medium severity 718/1000
Why? Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 6.5
Uncontrolled Resource Consumption ('Resource Exhaustion')
SNYK-JS-TAR-6476909
No Proof of Concept

(*) Note that the real score may have changed since the PR was raised.

Check the changes in this PR to ensure they won't cause issues with your project.


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report

🛠 Adjust project settings

📚 Read more about Snyk's upgrade and patch logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Uncontrolled Resource Consumption ('Resource Exhaustion')

Copy link

Lint outputs ✅

Tests outputs ❌

FAIL tests/specs/account.spec.js
● Console

console.log
  app start error Error: Failed to create session.
  Unable to connect to "http://127.0.0.1:9515/", make sure browser driver is running on that address.
  If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
      at Object.startWebDriverSession (/home/runner/work/ledger-live-desktop/ledger-live-desktop/node_modules/webdriver/build/utils.js:34:15)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)

  at Object.<anonymous> (tests/common.js:29:15)

● Account › should start in this state

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Account › should start in this state

TypeError: app.client.$ is not a function

  83 |   if (!disableStartSnap) {
  84 |     it("should start in this state", async () => {
> 85 |       await app.client.$("__app__ready__");
     |                        ^
  86 |       await app.client.pause(1000);
  87 |       expect(await app.client.screenshot()).toMatchImageSnapshot({
  88 |         customSnapshotIdentifier: `__start__${name}`,

  at Object.<anonymous> (tests/common.js:85:24)

● Account › add accounts flow › for dogecoin

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Account › add accounts flow › for dogecoin

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   describe("add accounts flow", () => {
  11 |     // Add accounts for all currencies with special flows (delegate, vote, etc)

  at $ (tests/specs/account.spec.js:8:36)
  at Object.<anonymous> (tests/specs/account.spec.js:19:40)

● Account › add accounts flow › for xrp

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Account › add accounts flow › for xrp

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   describe("add accounts flow", () => {
  11 |     // Add accounts for all currencies with special flows (delegate, vote, etc)

  at $ (tests/specs/account.spec.js:8:36)
  at Object.<anonymous> (tests/specs/account.spec.js:19:40)

● Account › add accounts flow › for ethereum_classic

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Account › add accounts flow › for ethereum_classic

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   describe("add accounts flow", () => {
  11 |     // Add accounts for all currencies with special flows (delegate, vote, etc)

  at $ (tests/specs/account.spec.js:8:36)
  at Object.<anonymous> (tests/specs/account.spec.js:19:40)

● Account › add accounts flow › for tezos

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Account › add accounts flow › for tezos

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   describe("add accounts flow", () => {
  11 |     // Add accounts for all currencies with special flows (delegate, vote, etc)

  at $ (tests/specs/account.spec.js:8:36)
  at Object.<anonymous> (tests/specs/account.spec.js:19:40)

● Account › add accounts flow › for cosmos

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Account › add accounts flow › for cosmos

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   describe("add accounts flow", () => {
  11 |     // Add accounts for all currencies with special flows (delegate, vote, etc)

  at $ (tests/specs/account.spec.js:8:36)
  at Object.<anonymous> (tests/specs/account.spec.js:19:40)

● Account › add token accounts flow › token when parent missing

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Account › add token accounts flow › token when parent missing

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   describe("add accounts flow", () => {
  11 |     // Add accounts for all currencies with special flows (delegate, vote, etc)

  at $ (tests/specs/account.spec.js:8:36)
  at Object.<anonymous> (tests/specs/account.spec.js:48:38)

● Account › add token accounts flow › receive token when subAccount exist already

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Account › add token accounts flow › receive token when subAccount exist already

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   describe("add accounts flow", () => {
  11 |     // Add accounts for all currencies with special flows (delegate, vote, etc)

  at $ (tests/specs/account.spec.js:8:36)
  at Object.<anonymous> (tests/specs/account.spec.js:65:41)

● Account › add token accounts flow › receive new token

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Account › add token accounts flow › receive new token

TypeError: this.app.client.$ is not a function

  35 | 
  36 |   get closeButton() {
> 37 |     return this.app.client.$("#modal-close-button");
     |                            ^
  38 |   }
  39 | 
  40 |   async isDisplayed(reverse = false) {

  at ModalPage.closeButton (tests/po/modal.page.js:37:28)
  at ModalPage.close (tests/po/modal.page.js:50:29)
  at Object.<anonymous> (tests/specs/account.spec.js:89:23)

● Account › account flows › account migration flow

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Account › account flows › account migration flow

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   describe("add accounts flow", () => {
  11 |     // Add accounts for all currencies with special flows (delegate, vote, etc)

  at $ (tests/specs/account.spec.js:8:36)
  at Object.<anonymous> (tests/specs/account.spec.js:115:42)

● Account › account flows › receive flow

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Account › account flows › receive flow

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   describe("add accounts flow", () => {
  11 |     // Add accounts for all currencies with special flows (delegate, vote, etc)

  at $ (tests/specs/account.spec.js:8:36)
  at Object.<anonymous> (tests/specs/account.spec.js:143:41)

● Account › account flows › send flow

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Account › account flows › send flow

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   describe("add accounts flow", () => {
  11 |     // Add accounts for all currencies with special flows (delegate, vote, etc)

  at $ (tests/specs/account.spec.js:8:36)
  at Object.<anonymous> (tests/specs/account.spec.js:158:32)

● Account › account flows › cosmos delegate flow

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Account › account flows › cosmos delegate flow

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   describe("add accounts flow", () => {
  11 |     // Add accounts for all currencies with special flows (delegate, vote, etc)

  at $ (tests/specs/account.spec.js:8:36)
  at Object.<anonymous> (tests/specs/account.spec.js:182:36)

● Account › account flows › tezos delegate flow

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Account › account flows › tezos delegate flow

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   describe("add accounts flow", () => {
  11 |     // Add accounts for all currencies with special flows (delegate, vote, etc)

  at $ (tests/specs/account.spec.js:8:36)
  at Object.<anonymous> (tests/specs/account.spec.js:206:36)

● Account › remove accounts flow › displays a list of accounts

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Account › remove accounts flow › displays a list of accounts

TypeError: this.app.client.$ is not a function

  39 | 
  40 |   async isDisplayed(reverse = false) {
> 41 |     const elem = await this.app.client.$("#modal-container");
     |                                        ^
  42 |     const visible = reverse
  43 |       ? await !elem.waitForDisplayed({ timeout: 3000, reverse })
  44 |       : await elem.waitForDisplayed();

  at ModalPage.isDisplayed (tests/po/modal.page.js:41:40)
  at Object.<anonymous> (tests/specs/account.spec.js:230:43)

● Account › remove accounts flow › remove one account

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Account › remove accounts flow › remove one account

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   describe("add accounts flow", () => {
  11 |     // Add accounts for all currencies with special flows (delegate, vote, etc)

  at $ (tests/specs/account.spec.js:8:36)
  at Object.<anonymous> (tests/specs/account.spec.js:245:37)

FAIL tests/specs/onboarding.spec.js
● Console

console.log
  app start error Error: Failed to create session.
  Unable to connect to "http://127.0.0.1:9515/", make sure browser driver is running on that address.
  If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
      at Object.startWebDriverSession (/home/runner/work/ledger-live-desktop/ledger-live-desktop/node_modules/webdriver/build/utils.js:34:15)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)

  at Object.<anonymous> (tests/common.js:29:15)

● Onboarding › should start in this state

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Onboarding › should start in this state

TypeError: app.client.$ is not a function

  83 |   if (!disableStartSnap) {
  84 |     it("should start in this state", async () => {
> 85 |       await app.client.$("__app__ready__");
     |                        ^
  86 |       await app.client.pause(1000);
  87 |       expect(await app.client.screenshot()).toMatchImageSnapshot({
  88 |         customSnapshotIdentifier: `__start__${name}`,

  at Object.<anonymous> (tests/common.js:85:24)

● Onboarding › go through start

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Onboarding › go through start

TypeError: _common.app.client.$ is not a function

  4 |   initialize("onboarding", {});
  5 | 
> 6 |   const $ = selector => app.client.$(selector);
    |                                    ^
  7 | 
  8 |   it("go through start", async () => {
  9 |     const elem = await $("#onboarding-get-started-button");

  at $ (tests/specs/onboarding.spec.js:6:36)
  at Object.<anonymous> (tests/specs/onboarding.spec.js:9:24)

● Onboarding › accept terms

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Onboarding › accept terms

TypeError: _common.app.client.$ is not a function

  4 |   initialize("onboarding", {});
  5 | 
> 6 |   const $ = selector => app.client.$(selector);
    |                                    ^
  7 | 
  8 |   it("go through start", async () => {
  9 |     const elem = await $("#onboarding-get-started-button");

  at $ (tests/specs/onboarding.spec.js:6:36)
  at Object.<anonymous> (tests/specs/onboarding.spec.js:19:26)

● Onboarding › selects nanoX

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Onboarding › selects nanoX

TypeError: _common.app.client.$ is not a function

  4 |   initialize("onboarding", {});
  5 | 
> 6 |   const $ = selector => app.client.$(selector);
    |                                    ^
  7 | 
  8 |   it("go through start", async () => {
  9 |     const elem = await $("#onboarding-get-started-button");

  at $ (tests/specs/onboarding.spec.js:6:36)
  at Object.<anonymous> (tests/specs/onboarding.spec.js:31:25)

● Onboarding › goes through the tutorial

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Onboarding › goes through the tutorial

TypeError: _common.app.client.$ is not a function

  4 |   initialize("onboarding", {});
  5 | 
> 6 |   const $ = selector => app.client.$(selector);
    |                                    ^
  7 | 
  8 |   it("go through start", async () => {
  9 |     const elem = await $("#onboarding-get-started-button");

  at $ (tests/specs/onboarding.spec.js:6:36)
  at Object.<anonymous> (tests/specs/onboarding.spec.js:40:28)

● Onboarding › gets started

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Onboarding › gets started

TypeError: _common.app.client.$ is not a function

  4 |   initialize("onboarding", {});
  5 | 
> 6 |   const $ = selector => app.client.$(selector);
    |                                    ^
  7 | 
  8 |   it("go through start", async () => {
  9 |     const elem = await $("#onboarding-get-started-button");

  at $ (tests/specs/onboarding.spec.js:6:36)
  at Object.<anonymous> (tests/specs/onboarding.spec.js:56:24)

● Onboarding › goest to pincode

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Onboarding › goest to pincode

TypeError: _common.app.client.$ is not a function

  4 |   initialize("onboarding", {});
  5 | 
> 6 |   const $ = selector => app.client.$(selector);
    |                                    ^
  7 | 
  8 |   it("go through start", async () => {
  9 |     const elem = await $("#onboarding-get-started-button");

  at $ (tests/specs/onboarding.spec.js:6:36)
  at Object.<anonymous> (tests/specs/onboarding.spec.js:67:24)

● Onboarding › goest to pincode 2

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Onboarding › goest to pincode 2

TypeError: _common.app.client.$ is not a function

  4 |   initialize("onboarding", {});
  5 | 
> 6 |   const $ = selector => app.client.$(selector);
    |                                    ^
  7 | 
  8 |   it("go through start", async () => {
  9 |     const elem = await $("#onboarding-get-started-button");

  at $ (tests/specs/onboarding.spec.js:6:36)
  at Object.<anonymous> (tests/specs/onboarding.spec.js:76:29)

● Onboarding › goest to recovery phrase

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Onboarding › goest to recovery phrase

TypeError: _common.app.client.$ is not a function

  4 |   initialize("onboarding", {});
  5 | 
> 6 |   const $ = selector => app.client.$(selector);
    |                                    ^
  7 | 
  8 |   it("go through start", async () => {
  9 |     const elem = await $("#onboarding-get-started-button");

  at $ (tests/specs/onboarding.spec.js:6:36)
  at Object.<anonymous> (tests/specs/onboarding.spec.js:87:24)

● Onboarding › goest to recovery phrase 2

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Onboarding › goest to recovery phrase 2

TypeError: _common.app.client.$ is not a function

  4 |   initialize("onboarding", {});
  5 | 
> 6 |   const $ = selector => app.client.$(selector);
    |                                    ^
  7 | 
  8 |   it("go through start", async () => {
  9 |     const elem = await $("#onboarding-get-started-button");

  at $ (tests/specs/onboarding.spec.js:6:36)
  at Object.<anonymous> (tests/specs/onboarding.spec.js:96:36)

● Onboarding › goest to recovery phrase 3

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Onboarding › goest to recovery phrase 3

TypeError: _common.app.client.$ is not a function

  4 |   initialize("onboarding", {});
  5 | 
> 6 |   const $ = selector => app.client.$(selector);
    |                                    ^
  7 | 
  8 |   it("go through start", async () => {
  9 |     const elem = await $("#onboarding-get-started-button");

  at $ (tests/specs/onboarding.spec.js:6:36)
  at Object.<anonymous> (tests/specs/onboarding.spec.js:107:24)

● Onboarding › goest to recovery phrase 4

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Onboarding › goest to recovery phrase 4

TypeError: _common.app.client.$ is not a function

  4 |   initialize("onboarding", {});
  5 | 
> 6 |   const $ = selector => app.client.$(selector);
    |                                    ^
  7 | 
  8 |   it("go through start", async () => {
  9 |     const elem = await $("#onboarding-get-started-button");

  at $ (tests/specs/onboarding.spec.js:6:36)
  at Object.<anonymous> (tests/specs/onboarding.spec.js:116:24)

● Onboarding › goest to quizz

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Onboarding › goest to quizz

TypeError: _common.app.client.$ is not a function

  4 |   initialize("onboarding", {});
  5 | 
> 6 |   const $ = selector => app.client.$(selector);
    |                                    ^
  7 | 
  8 |   it("go through start", async () => {
  9 |     const elem = await $("#onboarding-get-started-button");

  at $ (tests/specs/onboarding.spec.js:6:36)
  at Object.<anonymous> (tests/specs/onboarding.spec.js:125:24)

● Onboarding › finished the quizz

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Onboarding › finished the quizz

TypeError: _common.app.client.$ is not a function

  4 |   initialize("onboarding", {});
  5 | 
> 6 |   const $ = selector => app.client.$(selector);
    |                                    ^
  7 | 
  8 |   it("go through start", async () => {
  9 |     const elem = await $("#onboarding-get-started-button");

  at $ (tests/specs/onboarding.spec.js:6:36)
  at Object.<anonymous> (tests/specs/onboarding.spec.js:134:22)

● Onboarding › goest to connect

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Onboarding › goest to connect

TypeError: _common.app.client.$ is not a function

  4 |   initialize("onboarding", {});
  5 | 
> 6 |   const $ = selector => app.client.$(selector);
    |                                    ^
  7 | 
  8 |   it("go through start", async () => {
  9 |     const elem = await $("#onboarding-get-started-button");

  at $ (tests/specs/onboarding.spec.js:6:36)
  at Object.<anonymous> (tests/specs/onboarding.spec.js:157:24)

● Onboarding › check nano

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Onboarding › check nano

TypeError: _common.app.client.$ is not a function

  4 |   initialize("onboarding", {});
  5 | 
> 6 |   const $ = selector => app.client.$(selector);
    |                                    ^
  7 | 
  8 |   it("go through start", async () => {
  9 |     const elem = await $("#onboarding-get-started-button");

  at $ (tests/specs/onboarding.spec.js:6:36)
  at Object.<anonymous> (tests/specs/onboarding.spec.js:166:24)

● Onboarding › should be on app

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Onboarding › should be on app

TypeError: _common.app.client.$ is not a function

  4 |   initialize("onboarding", {});
  5 | 
> 6 |   const $ = selector => app.client.$(selector);
    |                                    ^
  7 | 
  8 |   it("go through start", async () => {
  9 |     const elem = await $("#onboarding-get-started-button");

  at $ (tests/specs/onboarding.spec.js:6:36)
  at Object.<anonymous> (tests/specs/onboarding.spec.js:187:24)

FAIL tests/specs/swap.spec.js
● Console

console.log
  app start error Error: Failed to create session.
  Unable to connect to "http://127.0.0.1:9515/", make sure browser driver is running on that address.
  If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
      at Object.startWebDriverSession (/home/runner/work/ledger-live-desktop/ledger-live-desktop/node_modules/webdriver/build/utils.js:34:15)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)

  at Object.<anonymous> (tests/common.js:29:15)

● Swap › should start in this state

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Swap › should start in this state

TypeError: app.client.$ is not a function

  83 |   if (!disableStartSnap) {
  84 |     it("should start in this state", async () => {
> 85 |       await app.client.$("__app__ready__");
     |                        ^
  86 |       await app.client.pause(1000);
  87 |       expect(await app.client.screenshot()).toMatchImageSnapshot({
  88 |         customSnapshotIdentifier: `__start__${name}`,

  at Object.<anonymous> (tests/common.js:85:24)

● Swap › access the feature

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Swap › access the feature

TypeError: _common.app.client.$ is not a function

  11 |   );
  12 | 
> 13 |   const $ = selector => app.client.$(selector);
     |                                    ^
  14 | 
  15 |   it("access the feature", async () => {
  16 |     // Access manager and go through firmware update

  at $ (tests/specs/swap.spec.js:13:36)
  at Object.<anonymous> (tests/specs/swap.spec.js:17:24)

● Swap › pass KYC landing

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Swap › pass KYC landing

TypeError: _common.app.client.$ is not a function

  11 |   );
  12 | 
> 13 |   const $ = selector => app.client.$(selector);
     |                                    ^
  14 | 
  15 |   it("access the feature", async () => {
  16 |     // Access manager and go through firmware update

  at $ (tests/specs/swap.spec.js:13:36)
  at Object.<anonymous> (tests/specs/swap.spec.js:40:31)

● Swap › fill the form and get rates

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Swap › fill the form and get rates

TypeError: _common.app.client.$ is not a function

  11 |   );
  12 | 
> 13 |   const $ = selector => app.client.$(selector);
     |                                    ^
  14 | 
  15 |   it("access the feature", async () => {
  16 |     // Access manager and go through firmware update

  at $ (tests/specs/swap.spec.js:13:36)
  at Object.<anonymous> (tests/specs/swap.spec.js:57:32)

● Swap › confirm summary step

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Swap › confirm summary step

TypeError: _common.app.client.$ is not a function

  11 |   );
  12 | 
> 13 |   const $ = selector => app.client.$(selector);
     |                                    ^
  14 | 
  15 |   it("access the feature", async () => {
  16 |     // Access manager and go through firmware update

  at $ (tests/specs/swap.spec.js:13:36)
  at Object.<anonymous> (tests/specs/swap.spec.js:87:34)

● Swap › confirm swap on device and broadcast step

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Swap › confirm swap on device and broadcast step

TypeError: _common.app.client.$ is not a function

  11 |   );
  12 | 
> 13 |   const $ = selector => app.client.$(selector);
     |                                    ^
  14 | 
  15 |   it("access the feature", async () => {
  16 |     // Access manager and go through firmware update

  at $ (tests/specs/swap.spec.js:13:36)
  at Object.<anonymous> (tests/specs/swap.spec.js:101:41)

● Swap › should appear in the history

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Swap › should appear in the history

TypeError: _common.app.client.$ is not a function

  11 |   );
  12 | 
> 13 |   const $ = selector => app.client.$(selector);
     |                                    ^
  14 | 
  15 |   it("access the feature", async () => {
  16 |     // Access manager and go through firmware update

  at $ (tests/specs/swap.spec.js:13:36)
  at Object.<anonymous> (tests/specs/swap.spec.js:159:32)

FAIL tests/specs/firmwareupdate.spec.js
● Console

console.log
  app start error Error: Failed to create session.
  Unable to connect to "http://127.0.0.1:9515/", make sure browser driver is running on that address.
  If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
      at Object.startWebDriverSession (/home/runner/work/ledger-live-desktop/ledger-live-desktop/node_modules/webdriver/build/utils.js:34:15)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)

  at Object.<anonymous> (tests/common.js:29:15)

● Firmware Update › should start in this state

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Firmware Update › should start in this state

TypeError: app.client.$ is not a function

  83 |   if (!disableStartSnap) {
  84 |     it("should start in this state", async () => {
> 85 |       await app.client.$("__app__ready__");
     |                        ^
  86 |       await app.client.pause(1000);
  87 |       expect(await app.client.screenshot()).toMatchImageSnapshot({
  88 |         customSnapshotIdentifier: `__start__${name}`,

  at Object.<anonymous> (tests/common.js:85:24)

● Firmware Update › access manager

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Firmware Update › access manager

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   it("access manager", async () => {
  11 |     // Access manager and go through firmware update

  at $ (tests/specs/firmwareupdate.spec.js:8:36)
  at Object.<anonymous> (tests/specs/firmwareupdate.spec.js:12:24)

● Firmware Update › firmware update flow-1

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Firmware Update › firmware update flow-1

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   it("access manager", async () => {
  11 |     // Access manager and go through firmware update

  at $ (tests/specs/firmwareupdate.spec.js:8:36)
  at Object.<anonymous> (tests/specs/firmwareupdate.spec.js:29:24)

● Firmware Update › firmware update flow-2

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Firmware Update › firmware update flow-2

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   it("access manager", async () => {
  11 |     // Access manager and go through firmware update

  at $ (tests/specs/firmwareupdate.spec.js:8:36)
  at Object.<anonymous> (tests/specs/firmwareupdate.spec.js:37:26)

● Firmware Update › firmware update flow-3

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Firmware Update › firmware update flow-3

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   it("access manager", async () => {
  11 |     // Access manager and go through firmware update

  at $ (tests/specs/firmwareupdate.spec.js:8:36)
  at Object.<anonymous> (tests/specs/firmwareupdate.spec.js:47:24)

● Firmware Update › firmware update flow-5

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Firmware Update › firmware update flow-5

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   it("access manager", async () => {
  11 |     // Access manager and go through firmware update

  at $ (tests/specs/firmwareupdate.spec.js:8:36)
  at Object.<anonymous> (tests/specs/firmwareupdate.spec.js:55:34)

● Firmware Update › firmware update flow-6

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Firmware Update › firmware update flow-6

TypeError: app.client.execute is not a function

  79 | 
  80 | export const getMockDeviceEvent = app => async (...events) => {
> 81 |   return await app.client.execute(e => {
     |                           ^
  82 |     window.mock.events.mockDeviceEvent(...e);
  83 |   }, events);
  84 | };

  at tests/applicationProxy.js:81:27
  at Object.<anonymous> (tests/specs/firmwareupdate.spec.js:65:11)

● Firmware Update › firmware update flow-7

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Firmware Update › firmware update flow-7

TypeError: app.client.execute is not a function

  79 | 
  80 | export const getMockDeviceEvent = app => async (...events) => {
> 81 |   return await app.client.execute(e => {
     |                           ^
  82 |     window.mock.events.mockDeviceEvent(...e);
  83 |   }, events);
  84 | };

  at tests/applicationProxy.js:81:27
  at Object.<anonymous> (tests/specs/firmwareupdate.spec.js:74:11)

● Firmware Update › firmware update flow-8

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Firmware Update › firmware update flow-8

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   it("access manager", async () => {
  11 |     // Access manager and go through firmware update

  at $ (tests/specs/firmwareupdate.spec.js:8:36)
  at Object.<anonymous> (tests/specs/firmwareupdate.spec.js:83:24)

● Firmware Update › firmware update flow-9

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Firmware Update › firmware update flow-9

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   it("access manager", async () => {
  11 |     // Access manager and go through firmware update

  at $ (tests/specs/firmwareupdate.spec.js:8:36)
  at Object.<anonymous> (tests/specs/firmwareupdate.spec.js:91:24)

FAIL tests/specs/settings.spec.js
● Console

console.log
  app start error Error: Failed to create session.
  Unable to connect to "http://127.0.0.1:9515/", make sure browser driver is running on that address.
  If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
      at Object.startWebDriverSession (/home/runner/work/ledger-live-desktop/ledger-live-desktop/node_modules/webdriver/build/utils.js:34:15)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)

  at Object.<anonymous> (tests/common.js:29:15)

● Settings › should start in this state

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Settings › should start in this state

TypeError: app.client.$ is not a function

  83 |   if (!disableStartSnap) {
  84 |     it("should start in this state", async () => {
> 85 |       await app.client.$("__app__ready__");
     |                        ^
  86 |       await app.client.pause(1000);
  87 |       expect(await app.client.screenshot()).toMatchImageSnapshot({
  88 |         customSnapshotIdentifier: `__start__${name}`,

  at Object.<anonymous> (tests/common.js:85:24)

● Settings › naive discreet mode toggle and assorted screens

TypeError: app.client.addCommand is not a function

  30 |     }
  31 | 
> 32 |     app.client.addCommand("waitForSync", async () => {
     |                ^
  33 |       const sync = await app.client.$("#topbar-synchronized");
  34 |       await sync.waitForDisplayed();
  35 |     });

  at Object.<anonymous> (tests/common.js:32:16)

● Settings › naive discreet mode toggle and assorted screens

TypeError: _common.app.client.$ is not a function

   6 |   });
   7 | 
>  8 |   const $ = selector => app.client.$(selector);
     |                                    ^
   9 | 
  10 |   it("naive discreet mode toggle and assorted screens", async () => {
  11 |     // Toggle discreet mode twice

  at $ (tests/specs/settings.spec.js:8:36)
  at Object.<anonymous> (tests/specs/settings.spec.js:12:34)

Test Suites: 5 failed, 5 total
Tests: 52 failed, 52 total
Snapshots: 0 total
Time: 3.974 s
Ran all test suites matching /tests/specs/account.spec.js|tests/specs/firmwareupdate.spec.js|tests/specs/onboarding.spec.js|tests/specs/settings.spec.js|tests/specs/swap.spec.js/i.
error Command failed with exit code 1.

Diff output ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants