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(); diff --git a/src/components/Activity.tsx b/src/components/Activity.tsx index a86d7cf2..e9781991 100644 --- a/src/components/Activity.tsx +++ b/src/components/Activity.tsx @@ -441,18 +441,18 @@ export function CombinedActivity() { - - - navigate("/settings/federations") - } - > -
- - {i18n.t("home.federation")} -
-
-
+ {/**/} + {/* */} + {/* navigate("/settings/federations")*/} + {/* }*/} + {/* >*/} + {/*
*/} + {/* */} + {/* {i18n.t("home.federation")}*/} + {/*
*/} + {/* */} + {/*
*/} navigate("/receive")}>
diff --git a/src/routes/setup/NewProfile.tsx b/src/routes/setup/NewProfile.tsx index 091d5333..312bd4b7 100644 --- a/src/routes/setup/NewProfile.tsx +++ b/src/routes/setup/NewProfile.tsx @@ -31,7 +31,8 @@ export function NewProfile() { ); console.log("profile", profile); localStorage.setItem("profile_setup_stage", "skipped"); - navigate("/addfederation"); + // navigate("/addfederation"); + navigate("/"); setSkipping(false); } @@ -46,7 +47,8 @@ export function NewProfile() { ); console.log("profile", profile); localStorage.setItem("profile_setup_stage", "saved"); - navigate("/addfederation"); + // navigate("/addfederation"); + navigate("/"); } catch (e) { console.error(e); }