Skip to content

Commit

Permalink
fix tests for new fedimint flow
Browse files Browse the repository at this point in the history
  • Loading branch information
futurepaul authored and benthecarman committed Jun 24, 2024
1 parent f1e461a commit 111b45a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions e2e/fedimint.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand All @@ -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();

Expand Down
6 changes: 3 additions & 3 deletions e2e/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 111b45a

Please sign in to comment.