Fix Playwright test timeouts on CI by using deterministic load waits #174
Annotations
8 errors and 1 notice
|
playwright
Process completed with exit code 5.
|
|
playwright
Process completed with exit code 1.
|
|
[chromium] › test/e2e/community-events.spec.ts:218:1 › upcoming and past sections only show events on the correct side of now:
test/e2e/community-events.spec.ts#L241
2) [chromium] › test/e2e/community-events.spec.ts:218:1 › upcoming and past sections only show events on the correct side of now
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.scrollIntoViewIfNeeded: Timeout 10000ms exceeded.
Call log:
- waiting for locator('section').filter({ has: getByRole('heading', { name: /Past events & meetups/i, level: 2 }) }).first()
239 | await upcomingSection.scrollIntoViewIfNeeded({ timeout: 10000 })
240 | await page.waitForTimeout(200)
> 241 | await pastEventsSection.scrollIntoViewIfNeeded({ timeout: 10000 })
| ^
242 |
243 | const now = Date.now()
244 |
at /home/runner/work/graphql.github.io/graphql.github.io/test/e2e/community-events.spec.ts:241:27
|
|
[chromium] › test/e2e/community-events.spec.ts:218:1 › upcoming and past sections only show events on the correct side of now:
test/e2e/community-events.spec.ts#L241
2) [chromium] › test/e2e/community-events.spec.ts:218:1 › upcoming and past sections only show events on the correct side of now
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.scrollIntoViewIfNeeded: Timeout 10000ms exceeded.
Call log:
- waiting for locator('section').filter({ has: getByRole('heading', { name: /Past events & meetups/i, level: 2 }) }).first()
239 | await upcomingSection.scrollIntoViewIfNeeded({ timeout: 10000 })
240 | await page.waitForTimeout(200)
> 241 | await pastEventsSection.scrollIntoViewIfNeeded({ timeout: 10000 })
| ^
242 |
243 | const now = Date.now()
244 |
at /home/runner/work/graphql.github.io/graphql.github.io/test/e2e/community-events.spec.ts:241:27
|
|
[chromium] › test/e2e/community-events.spec.ts:218:1 › upcoming and past sections only show events on the correct side of now:
test/e2e/community-events.spec.ts#L239
2) [chromium] › test/e2e/community-events.spec.ts:218:1 › upcoming and past sections only show events on the correct side of now
TimeoutError: locator.scrollIntoViewIfNeeded: Timeout 9722.705000000002ms exceeded.
Call log:
- attempting scroll into view action
- waiting for element to be stable
237 |
238 | // Scroll sections sequentially to avoid DOM detachment issues on CI
> 239 | await upcomingSection.scrollIntoViewIfNeeded({ timeout: 10000 })
| ^
240 | await page.waitForTimeout(200)
241 | await pastEventsSection.scrollIntoViewIfNeeded({ timeout: 10000 })
242 |
at /home/runner/work/graphql.github.io/graphql.github.io/test/e2e/community-events.spec.ts:239:25
|
|
[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#L156
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.scrollIntoViewIfNeeded: Timeout 9838.683999999994ms exceeded.
Call log:
- attempting scroll into view action
- waiting for element to be stable
154 |
155 | await pastEventsSection.waitFor({ state: "visible" })
> 156 | await pastEventsSection.scrollIntoViewIfNeeded({ timeout: 10000 })
| ^
157 | await page.waitForTimeout(300) // Brief stabilization to prevent DOM detachment
158 |
159 | const filterGroup = pastEventsSection.locator("fieldset")
at /home/runner/work/graphql.github.io/graphql.github.io/test/e2e/community-events.spec.ts:156: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#L156
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.scrollIntoViewIfNeeded: Timeout 9825.370000000003ms exceeded.
Call log:
- attempting scroll into view action
- waiting for element to be stable
154 |
155 | await pastEventsSection.waitFor({ state: "visible" })
> 156 | await pastEventsSection.scrollIntoViewIfNeeded({ timeout: 10000 })
| ^
157 | await page.waitForTimeout(300) // Brief stabilization to prevent DOM detachment
158 |
159 | const filterGroup = pastEventsSection.locator("fieldset")
at /home/runner/work/graphql.github.io/graphql.github.io/test/e2e/community-events.spec.ts:156: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#L156
1) [chromium] › test/e2e/community-events.spec.ts:141:1 › event type filters hide cards and lock the last active tag
TimeoutError: locator.scrollIntoViewIfNeeded: Timeout 9694.586ms exceeded.
Call log:
- attempting scroll into view action
- waiting for element to be stable
154 |
155 | await pastEventsSection.waitFor({ state: "visible" })
> 156 | await pastEventsSection.scrollIntoViewIfNeeded({ timeout: 10000 })
| ^
157 | await page.waitForTimeout(300) // Brief stabilization to prevent DOM detachment
158 |
159 | const filterGroup = pastEventsSection.locator("fieldset")
at /home/runner/work/graphql.github.io/graphql.github.io/test/e2e/community-events.spec.ts:156:27
|
|
🎭 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:218:1 › upcoming and past sections only show events on the correct side of now
3 skipped
5 passed (2.9m)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
playwright-report
Expired
|
2.83 MB |
sha256:621055d6b07ba68cadad7490aeade01e048087a1ef44c3cd658dc711b14d338f
|
|