From 111b45ace8dca0ee6151d1d4946b87040f2e19c7 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Mon, 24 Jun 2024 15:00:38 -0500 Subject: [PATCH] fix tests for new fedimint flow --- e2e/fedimint.spec.ts | 7 +++++++ e2e/utils.ts | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/e2e/fedimint.spec.ts b/e2e/fedimint.spec.ts index e51e47dd..453f448f 100644 --- a/e2e/fedimint.spec.ts +++ b/e2e/fedimint.spec.ts @@ -12,6 +12,10 @@ test.beforeEach(async ({ page }) => { test("fedmint join, receive, send", async ({ page }) => { await loadHome(page); + // Click the top left button (it's the profile button), a child of header + // TODO: better ARIA stuff + await page.locator(`header button`).first().click(); + // Click "Join a federation" cta await page.click("text=Join a federation"); @@ -28,6 +32,9 @@ test("fedmint join, receive, send", async ({ page }) => { // Wait for a header to appear with the text "MutinySignetFederation" await page.getByText("MutinySignetFederation").waitFor(); + // Navigate back to profile + await page.goBack(); + // Navigate back home await page.goBack(); diff --git a/e2e/utils.ts b/e2e/utils.ts index 603fd2d6..da7603e9 100644 --- a/e2e/utils.ts +++ b/e2e/utils.ts @@ -13,11 +13,11 @@ export async function loadHome(page: Page) { await page.locator("button:has-text('Skip for now')").click(); - await page.getByText("Pick a Federation").waitFor(); + // await page.getByText("Pick a Federation").waitFor(); - await page.locator("button:has-text('Skip for now')").click(); + // await page.locator("button:has-text('Skip for now')").click(); - await page.locator(`button:has-text('Confirm')`).click(); + // await page.locator(`button:has-text('Confirm')`).click(); // Should have a balance up top now await page.locator(`text=0 sats`).first().waitFor();