fix tests for new fedimint flow

This commit is contained in:
Paul Miller
2024-06-24 15:00:38 -05:00
committed by benthecarman
parent f1e461a7d1
commit 111b45ace8
2 changed files with 10 additions and 3 deletions

View File

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

View File

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