Fix Playwright test timeouts on CI by using deterministic load waits #173
Annotations
9 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#L239
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 9788.054000000004ms 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: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 9742.373000000021ms 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#L169
1) [chromium] › test/e2e/community-events.spec.ts:141:1 › event type filters hide cards and lock the last active tag
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.count: Test timeout of 90000ms exceeded.
167 | })
168 |
> 169 | if ((await filter.count()) === 0) continue
| ^
170 |
171 | activeFilters.push({
172 | filter,
at /home/runner/work/graphql.github.io/graphql.github.io/test/e2e/community-events.spec.ts:169:23
|
|
[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
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
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#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 9831.836000000003ms 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 9712.218999999997ms 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 (4.1m)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
playwright-report
Expired
|
2.79 MB |
sha256:b0a2812d010024ae0d02fc535641d0909605aec90cf3b15d92697edf05cf2601
|
|