Fix Playwright test timeouts on CI by using deterministic load waits #177
Annotations
7 errors and 1 notice
|
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 9712.386999999988ms 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 9797.36ms 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 9818.961000000003ms 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 8942.606ms 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
|
2.77 MB |
sha256:d90bfb540f95c0cd0c9642fea8a4c022c177f8d294de52d1afce61083e0b5a54
|
|