From 2bb5bd2ffe2fd19ef88c19560193a9366456fdf2 Mon Sep 17 00:00:00 2001 From: Victor Alber Date: Thu, 28 Nov 2024 16:32:44 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=A6=BA=20Removing=20data-testID=20?= =?UTF-8?q?+=20update=20account=20for=20counter=20value=20e2e=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/renderer/screens/dashboard/AssetDistribution/Row.tsx | 1 - apps/ledger-live-desktop/tests/page/portfolio.page.ts | 2 +- apps/ledger-live-desktop/tests/specs/speculos/settings.spec.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/ledger-live-desktop/src/renderer/screens/dashboard/AssetDistribution/Row.tsx b/apps/ledger-live-desktop/src/renderer/screens/dashboard/AssetDistribution/Row.tsx index eaffeed3cbb5..c4cdb056cfb6 100644 --- a/apps/ledger-live-desktop/src/renderer/screens/dashboard/AssetDistribution/Row.tsx +++ b/apps/ledger-live-desktop/src/renderer/screens/dashboard/AssetDistribution/Row.tsx @@ -147,7 +147,6 @@ const Row = ({ item: { currency, amount, distribution }, isVisible }: Props) => {distribution ? ( this.page.getByTestId(`asset-row-${asset.toLowerCase()}`); private assetRowValue = (asset: string) => - this.page.getByTestId(`asset-row-${asset.toLowerCase()}-value`); + this.page.getByTestId(`asset-row-${asset.toLowerCase()}`).locator("//div[position()=5]"); private operationRows = this.page.locator("[data-testid^='operation-row-']"); private totalBalance = this.page.getByTestId("total-balance"); private balanceDiff = this.page.getByTestId("balance-diff"); diff --git a/apps/ledger-live-desktop/tests/specs/speculos/settings.spec.ts b/apps/ledger-live-desktop/tests/specs/speculos/settings.spec.ts index 59aa73be5b17..be183cc26793 100644 --- a/apps/ledger-live-desktop/tests/specs/speculos/settings.spec.ts +++ b/apps/ledger-live-desktop/tests/specs/speculos/settings.spec.ts @@ -85,7 +85,7 @@ test.describe("Password", () => { }); test.describe("counter value selection", () => { - const account = Account.ETH_1; + const account = Account.BTC_NATIVE_SEGWIT_1; test.use({ userdata: "skip-onboarding", cliCommands: [