Skip to content

Commit f49b4e9

Browse files
test(lld): update screenshots (ubuntu-22.04) lld, test, screenshot
1 parent 769606e commit f49b4e9

File tree

9 files changed

+9
-4
lines changed

9 files changed

+9
-4
lines changed
-3.62 KB
Loading
-3.6 KB
Loading
-4.77 KB
Loading
-4.34 KB
Loading
-3.64 KB
Loading
-3.63 KB
Loading

apps/ledger-live-desktop/tests/specs/services/ethereumStaking.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,10 @@ test("Ethereum staking flows via portfolio, asset page and market page @smoke",
195195
await test.step("Market page loads with ETH staking available", async () => {
196196
await layout.goToMarket();
197197
await marketPage.waitForLoading();
198-
await page.getByTestId("market-eth-stake-button").waitFor({ state: "visible", timeout: 15000 });
198+
await page
199+
.locator('[data-testid="market-eth-stake-button"]:visible')
200+
.first()
201+
.waitFor({ state: "visible", timeout: 15000 });
199202
await expect
200203
.soft(page)
201204
.toHaveScreenshot("market-loaded-with-eth-stake-button-available.png", maskItemsInMarket);
Loading

e2e/desktop/tests/page/market.page.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ export class MarketPage extends AppPage {
88
private coinRow = (ticker: string) => this.page.getByTestId(`market-${ticker}-row`);
99
private coinPageContainer = this.page.getByTestId("market-coin-page-container");
1010
private buyButton = (ticker: string) =>
11-
this.page.getByTestId(`market-${ticker}-buy-button`).first();
12-
readonly swapButton = (ticker: string) => this.page.getByTestId(`market-${ticker}-swap-button`);
13-
private stakeButton = (ticker: string) => this.page.getByTestId(`market-${ticker}-stake-button`);
11+
this.page.locator(`[data-testid="market-${ticker}-buy-button"]:visible`).first();
12+
readonly swapButton = (ticker: string) =>
13+
this.page.locator(`[data-testid="market-${ticker}-swap-button"]:visible`).first();
14+
private stakeButton = (ticker: string) =>
15+
this.page.locator(`[data-testid="market-${ticker}-stake-button"]:visible`).first();
1416
private swapButtonOnAsset = this.page.getByTestId("market-coin-swap-button");
1517

1618
// Filter controls - using text selector because react-select doesn't forward data-testid

0 commit comments

Comments
 (0)