Fix Playwright test timeouts on CI by using deterministic load waits #178
Annotations
10 errors and 1 notice
|
check
Process completed with exit code 1.
|
|
playwright
Process completed with exit code 1.
|
|
[chromium] › test/e2e/community-events.spec.ts:220:1 › upcoming and past sections only show events on the correct side of now:
test/e2e/community-events.spec.ts#L243
2) [chromium] › test/e2e/community-events.spec.ts:220:1 › upcoming and past sections only show events on the correct side of now
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.waitFor: Timeout 15000ms exceeded.
Call log:
- waiting for locator('section').filter({ has: getByRole('heading', { name: /Upcoming events/i, level: 2 }) }).first()
241 |
242 | // Wait for both sections to be present before scrolling
> 243 | await upcomingSection.waitFor({ state: "attached", timeout: 15000 })
| ^
244 | await pastEventsSection.waitFor({ state: "attached", timeout: 15000 })
245 |
246 | // Scroll to bottom to ensure everything is loaded
at /home/runner/work/graphql.github.io/graphql.github.io/test/e2e/community-events.spec.ts:243:25
|
|
[chromium] › test/e2e/community-events.spec.ts:220:1 › upcoming and past sections only show events on the correct side of now:
test/e2e/community-events.spec.ts#L243
2) [chromium] › test/e2e/community-events.spec.ts:220:1 › upcoming and past sections only show events on the correct side of now
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.waitFor: Timeout 15000ms exceeded.
Call log:
- waiting for locator('section').filter({ has: getByRole('heading', { name: /Upcoming events/i, level: 2 }) }).first()
241 |
242 | // Wait for both sections to be present before scrolling
> 243 | await upcomingSection.waitFor({ state: "attached", timeout: 15000 })
| ^
244 | await pastEventsSection.waitFor({ state: "attached", timeout: 15000 })
245 |
246 | // Scroll to bottom to ensure everything is loaded
at /home/runner/work/graphql.github.io/graphql.github.io/test/e2e/community-events.spec.ts:243:25
|
|
[chromium] › test/e2e/community-events.spec.ts:220:1 › upcoming and past sections only show events on the correct side of now:
test/e2e/community-events.spec.ts#L0
2) [chromium] › test/e2e/community-events.spec.ts:220:1 › upcoming and past sections only show events on the correct side of now
Error: Object with guid response@62dd22304d853299e3e6c9a38c2cfb94 was not bound in the connection
|
|
[chromium] › test/e2e/community-events.spec.ts:220:1 › upcoming and past sections only show events on the correct side of now:
test/e2e/community-events.spec.ts#L0
2) [chromium] › test/e2e/community-events.spec.ts:220:1 › upcoming and past sections only show events on the correct side of now
Test timeout of 90000ms exceeded.
|
|
[chromium] › test/e2e/community-events.spec.ts:141:1 › event type filters hide cards and lock the last active tag:
test/e2e/community-events.spec.ts#L157
1) [chromium] › test/e2e/community-events.spec.ts:141:1 › event type filters hide cards and lock the last active tag
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.waitFor: Timeout 15000ms exceeded.
Call log:
- waiting for locator('section').filter({ has: getByRole('heading', { name: /Past events & meetups/i, level: 2 }) }).first() to be visible
155 | .first()
156 |
> 157 | await pastEventsSection.waitFor({ state: "visible", timeout: 15000 })
| ^
158 | await page.evaluate(() => window.scrollTo(0, document.body.scrollHeight))
159 | await page.waitForTimeout(500)
160 |
at /home/runner/work/graphql.github.io/graphql.github.io/test/e2e/community-events.spec.ts:157:27
|
|
[chromium] › test/e2e/community-events.spec.ts:141:1 › event type filters hide cards and lock the last active tag:
test/e2e/community-events.spec.ts#L157
1) [chromium] › test/e2e/community-events.spec.ts:141:1 › event type filters hide cards and lock the last active tag
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.waitFor: Timeout 15000ms exceeded.
Call log:
- waiting for locator('section').filter({ has: getByRole('heading', { name: /Past events & meetups/i, level: 2 }) }).first() to be visible
155 | .first()
156 |
> 157 | await pastEventsSection.waitFor({ state: "visible", timeout: 15000 })
| ^
158 | await page.evaluate(() => window.scrollTo(0, document.body.scrollHeight))
159 | await page.waitForTimeout(500)
160 |
at /home/runner/work/graphql.github.io/graphql.github.io/test/e2e/community-events.spec.ts:157:27
|
|
[chromium] › test/e2e/community-events.spec.ts:141:1 › event type filters hide cards and lock the last active tag:
test/e2e/community-events.spec.ts#L144
1) [chromium] › test/e2e/community-events.spec.ts:141:1 › event type filters hide cards and lock the last active tag
Error: page.goto: Test timeout of 90000ms exceeded.
Call log:
- navigating to "http://localhost:3000/community/events", waiting until "networkidle"
142 | page,
143 | }) => {
> 144 | await page.goto("/community/events", { waitUntil: "networkidle" })
| ^
145 | await page.waitForLoadState("domcontentloaded")
146 |
147 | const pastEventsSection = page
at /home/runner/work/graphql.github.io/graphql.github.io/test/e2e/community-events.spec.ts:144:14
|
|
[chromium] › test/e2e/community-events.spec.ts:141:1 › event type filters hide cards and lock the last active tag:
test/e2e/community-events.spec.ts#L0
1) [chromium] › test/e2e/community-events.spec.ts:141:1 › event type filters hide cards and lock the last active tag
Test timeout of 90000ms exceeded.
|
|
🎭 Playwright Run Summary
2 failed
[chromium] › test/e2e/community-events.spec.ts:141:1 › event type filters hide cards and lock the last active tag
[chromium] › test/e2e/community-events.spec.ts:220:1 › upcoming and past sections only show events on the correct side of now
3 skipped
5 passed (7.5m)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
playwright-report
Expired
|
2.79 MB |
sha256:93c27eac780fd4b445468874996834e7a175e4356fd04eaf04a2215d8e621fcd
|
|