Skip to content

Commit

Permalink
fix: 🦺 Removing data-testID + update account for counter value e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
VicAlbr committed Nov 28, 2024
1 parent 9894ecc commit 2bb5bd2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ const Row = ({ item: { currency, amount, distribution }, isVisible }: Props) =>
<Ellipsis>
{distribution ? (
<CounterValue
data-testid={`asset-row-${currency.name.toLowerCase()}-value`}
currency={currency}
value={amount}
color="palette.text.shade100"
Expand Down
2 changes: 1 addition & 1 deletion apps/ledger-live-desktop/tests/page/portfolio.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class PortfolioPage extends AppPage {
private showMoreButton = this.page.getByText("Show more");
private assetRow = (asset: string) => 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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit 2bb5bd2

Please sign in to comment.