-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SUPPORT] : Fix unstable sceenshots on ethereumStacking tests
- Loading branch information
1 parent
c94d878
commit a82a6c4
Showing
2 changed files
with
22 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"ledger-live-desktop": patch | ||
--- | ||
|
||
Fix unstable integration test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,20 @@ test("Ethereum staking flows via portfolio, asset page and market page @smoke", | |
const marketCoinPage = new MarketCoinPage(page); | ||
const analytics = new Analytics(page); | ||
|
||
const maskItemsInMarket = { | ||
mask: [ | ||
page.getByTestId("market-small-graph"), | ||
page.getByTestId("market-coin-price"), | ||
page.getByTestId("market-cap"), | ||
page.getByTestId("market-price-change"), | ||
page.getByRole("row").filter({ hasText: new RegExp("^(?!.*(?:Bitcoin|Ethereum)).*$") }), | ||
], | ||
}; | ||
|
||
const maskPartOfItemsInMarket = { | ||
mask: [page.getByRole("row").filter({ hasText: new RegExp("^(?!.*(?:Bitcoin|Ethereum)).*$") })], | ||
}; | ||
|
||
await test.step("Entry buttons load with feature flag enabled", async () => { | ||
await expect.soft(page).toHaveScreenshot("portfolio-entry-buttons.png", { | ||
mask: [layout.marketPerformanceWidget], | ||
|
@@ -150,16 +164,6 @@ test("Ethereum staking flows via portfolio, asset page and market page @smoke", | |
}); | ||
|
||
await test.step("Market page loads with ETH staking available", async () => { | ||
const maskItemsInMarket = { | ||
mask: [ | ||
page.getByTestId("market-small-graph"), | ||
page.getByTestId("market-coin-price"), | ||
page.getByTestId("market-cap"), | ||
page.getByTestId("market-price-change"), | ||
page.getByRole("row").filter({ hasText: new RegExp("^(?!.*(?:Bitcoin|Ethereum)).*$") }), | ||
], | ||
}; | ||
|
||
await layout.goToMarket(); | ||
await marketPage.waitForLoading(); | ||
await expect | ||
|
@@ -170,7 +174,9 @@ test("Ethereum staking flows via portfolio, asset page and market page @smoke", | |
await test.step("start stake flow via Stake entry button", async () => { | ||
await marketPage.startStakeFlowByTicker("eth"); | ||
await drawer.waitForDrawerToBeVisible(); | ||
await expect.soft(page).toHaveScreenshot("stake-drawer-opened-from-market-page.png"); | ||
await expect | ||
.soft(page) | ||
.toHaveScreenshot("stake-drawer-opened-from-market-page.png", maskPartOfItemsInMarket); | ||
Check failure on line 179 in apps/ledger-live-desktop/tests/specs/services/ethereumStaking.spec.ts GitHub Actions / Desktop Tests E2E (Ubuntu)[mocked_tests] › specs/services/ethereumStaking.spec.ts:67:5 › Ethereum staking flows via portfolio
|
||
await drawer.close(); | ||
}); | ||
|
||
|