Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Commit 111b45a

Browse files
futurepaulbenthecarman
authored andcommitted
fix tests for new fedimint flow
1 parent f1e461a commit 111b45a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

e2e/fedimint.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ test.beforeEach(async ({ page }) => {
1212
test("fedmint join, receive, send", async ({ page }) => {
1313
await loadHome(page);
1414

15+
// Click the top left button (it's the profile button), a child of header
16+
// TODO: better ARIA stuff
17+
await page.locator(`header button`).first().click();
18+
1519
// Click "Join a federation" cta
1620
await page.click("text=Join a federation");
1721

@@ -28,6 +32,9 @@ test("fedmint join, receive, send", async ({ page }) => {
2832
// Wait for a header to appear with the text "MutinySignetFederation"
2933
await page.getByText("MutinySignetFederation").waitFor();
3034

35+
// Navigate back to profile
36+
await page.goBack();
37+
3138
// Navigate back home
3239
await page.goBack();
3340

e2e/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ export async function loadHome(page: Page) {
1313

1414
await page.locator("button:has-text('Skip for now')").click();
1515

16-
await page.getByText("Pick a Federation").waitFor();
16+
// await page.getByText("Pick a Federation").waitFor();
1717

18-
await page.locator("button:has-text('Skip for now')").click();
18+
// await page.locator("button:has-text('Skip for now')").click();
1919

20-
await page.locator(`button:has-text('Confirm')`).click();
20+
// await page.locator(`button:has-text('Confirm')`).click();
2121

2222
// Should have a balance up top now
2323
await page.locator(`text=0 sats`).first().waitFor();

0 commit comments

Comments
 (0)