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();