diff --git a/tests/e2e/home.spec.ts b/tests/e2e/home.spec.ts index b18944a0013..1af15d04675 100644 --- a/tests/e2e/home.spec.ts +++ b/tests/e2e/home.spec.ts @@ -40,7 +40,7 @@ test.describe("Home Page", () => { await homePage.verifyMobileNavigation() await homePage.navigateFromMobileMenu( "learn", - "basics", + "ethereum explained", "what is ethereum", /.*\/what-is-ethereum/ ) diff --git a/tests/e2e/pages/FindWalletPage.ts b/tests/e2e/pages/FindWalletPage.ts index c501f8dccfb..1b1bd7d6d6a 100644 --- a/tests/e2e/pages/FindWalletPage.ts +++ b/tests/e2e/pages/FindWalletPage.ts @@ -30,9 +30,11 @@ export class FindWalletPage extends BasePage { this.mobileFiltersSubmitButton = page.getByTestId( "mobile-filters-submit-button" ) + // SSR renders all wallets and hides filtered-out rows via `.hidden`. + // Exclude them so assertions only run against visible rows. this.walletRows = page .getByTestId("wallet-list") - .locator(":scope > details") + .locator(":scope > details:not(.hidden)") this.rowCounter = page.getByText(/Showing all wallets \(\d+\)/i) }