diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index d973a97a12..732138d4d3 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -78,5 +78,5 @@ jobs: path: playwright-report/ retention-days: 30 - - uses: valeriangalliat/action-sshd-cloudflared@v1 - if: failure() + # - uses: valeriangalliat/action-sshd-cloudflared@v1 + # if: failure() diff --git a/playwright.config.ts b/playwright.config.ts index 7424479740..877b567d68 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -17,7 +17,7 @@ export default defineConfig({ screenshot: "only-on-failure", }, - timeout: 60 * 1000, + timeout: 90 * 1000, projects: [ { diff --git a/test/e2e/community-events.spec.ts b/test/e2e/community-events.spec.ts index e3c536d415..178cdcadae 100644 --- a/test/e2e/community-events.spec.ts +++ b/test/e2e/community-events.spec.ts @@ -141,7 +141,8 @@ test("map tooltip appears on marker hover", async ({ page }) => { test("event type filters hide cards and lock the last active tag", async ({ page, }) => { - await page.goto("/community/events") + await page.goto("/community/events", { waitUntil: "load" }) + const pastEventsSection = page .locator("section") .filter({ @@ -152,7 +153,8 @@ test("event type filters hide cards and lock the last active tag", async ({ }) .first() - await pastEventsSection.scrollIntoViewIfNeeded() + await pastEventsSection.waitFor({ state: "visible", timeout: 20000 }) + await page.waitForTimeout(1000) const filterGroup = pastEventsSection.locator("fieldset") @@ -216,7 +218,8 @@ test("event type filters hide cards and lock the last active tag", async ({ test("upcoming and past sections only show events on the correct side of now", async ({ page, }) => { - await page.goto("/community/events") + await page.goto("/community/events", { waitUntil: "load" }) + const upcomingSection = page .locator("section") .filter({ @@ -233,10 +236,10 @@ test("upcoming and past sections only show events on the correct side of now", a }) .first() - await Promise.all([ - upcomingSection.scrollIntoViewIfNeeded(), - pastEventsSection.scrollIntoViewIfNeeded(), - ]) + // Wait for both sections to be visible + await upcomingSection.waitFor({ state: "visible", timeout: 20000 }) + await pastEventsSection.waitFor({ state: "visible", timeout: 20000 }) + await page.waitForTimeout(1000) const now = Date.now()