From d71c121e36cce59e26df74a0b723372222f34343 Mon Sep 17 00:00:00 2001 From: Willie Chalmers III Date: Wed, 30 Sep 2026 20:57:37 -0700 Subject: [PATCH] test(site): Keep event browser checks within their time limit Read event links and metadata after each page load. The additional network-idle waits made live preview checks time out while crawling the calendar, even though the server-rendered content was available. Co-authored-by: Codex --- apps/site/tests/e2e/body-links.spec.ts | 2 -- apps/site/tests/e2e/event-metadata.spec.ts | 2 -- 2 files changed, 4 deletions(-) diff --git a/apps/site/tests/e2e/body-links.spec.ts b/apps/site/tests/e2e/body-links.spec.ts index d18c18c5..7af3a78d 100644 --- a/apps/site/tests/e2e/body-links.spec.ts +++ b/apps/site/tests/e2e/body-links.spec.ts @@ -27,7 +27,6 @@ async function expectExternalOpenIcon(locator: Locator) { async function firstVirtualEventPath(page: Page): Promise { await page.goto('/events'); - await page.waitForLoadState('networkidle'); const eventPaths = [ ...new Set( @@ -43,7 +42,6 @@ async function firstVirtualEventPath(page: Page): Promise { for (const eventPath of eventPaths) { await page.goto(eventPath); - await page.waitForLoadState('networkidle'); if ((await page.locator('main a', { hasText: /^Join$/ }).count()) > 0) { return eventPath; diff --git a/apps/site/tests/e2e/event-metadata.spec.ts b/apps/site/tests/e2e/event-metadata.spec.ts index 569057a3..6e27310a 100644 --- a/apps/site/tests/e2e/event-metadata.spec.ts +++ b/apps/site/tests/e2e/event-metadata.spec.ts @@ -111,7 +111,6 @@ test.describe('event metadata', () => { test('publishes stable Schema.org event details on event pages', async ({ page }) => { await page.goto('/events'); - await page.waitForLoadState('networkidle'); const eventPaths = [ ...new Set( @@ -129,7 +128,6 @@ test.describe('event metadata', () => { for (const eventPath of eventPaths) { await page.goto(eventPath); - await page.waitForLoadState('networkidle'); const event = await eventJsonLd(page); const canonicalPath = eventPath.endsWith('/') ? eventPath : `${eventPath}/`;