Skip to content

fix(core): ssr events #10435

fix(core): ssr events

fix(core): ssr events #10435

Triggered via pull request April 6, 2025 11:40
@bennypowersbennypowers
auto_merge_enabled #2891
fix/ssr-events
Status Failure
Total duration 1m 58s
Artifacts 1

tests.yml

on: pull_request
Matrix: Compile project
SSR Tests (Playwright)
1m 31s
SSR Tests (Playwright)
Lint files
1m 6s
Lint files
Unit Tests (Web Test Runner)
1m 7s
Unit Tests (Web Test Runner)
Verify that build runs on Windows
1m 48s
Verify that build runs on Windows
Publish Playwright Report
16s
Publish Playwright Report
Validate successful build on main
3s
Validate successful build on main
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 notice
SSR Tests (Playwright)
Process completed with exit code 1.
elements/pf-jump-links/test/pf-jump-links.e2e.ts:14:3 › pf-jump-links › ssr: core/pfe-core/controllers/scroll-spy-controller.ts#L36
1) elements/pf-jump-links/test/pf-jump-links.e2e.ts:14:3 › pf-jump-links › ssr ─────────────────── Error: ReferenceError: addEventListener is not defined at core/pfe-core/controllers/scroll-spy-controller.ts:36 34 | 35 | static { > 36 | addEventListener('scroll', () => { | ^ 37 | if (Math.round(window.innerHeight + window.scrollY) >= document.body.scrollHeight) { 38 | this.#instances.forEach(ssc => { 39 | ssc.#setActive(ssc.#linkChildren.at(-1)); at file:///__w/patternfly-elements/patternfly-elements/core/pfe-core/controllers/scroll-spy-controller.ts:36:5 at file:///__w/patternfly-elements/patternfly-elements/core/pfe-core/controllers/scroll-spy-controller.ts:43:4 at ModuleJob.run (node:internal/modules/esm/module_job:271:25) at onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:547:26) at async Promise.all (index 0) at renderGlobal (file:///__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:15:3) at file:///__w/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:59:35 expect(received).toEqual(expected) // deep equality Expected: 200 Received: 500 at /__w/patternfly-elements/patternfly-elements/core/pfe-core/controllers/scroll-spy-controller.ts:36:5 at /__w/patternfly-elements/patternfly-elements/core/pfe-core/controllers/scroll-spy-controller.ts:43:4 at renderGlobal (/__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:15:3) at /__w/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:59:35 at SSRPage.snapshot (/__w/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:117:10) at SSRPage.snapshots (/__w/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:133:9) at /__w/patternfly-elements/patternfly-elements/elements/pf-jump-links/test/pf-jump-links.e2e.ts:23:5
🎭 Playwright Run Summary
1 failed elements/pf-jump-links/test/pf-jump-links.e2e.ts:14:3 › pf-jump-links › ssr ──────────────────── 30 passed (21.1s)

Artifacts

Produced during runtime
Name Size Digest
test-report Expired
4.4 MB
sha256:2925c73e8fa640d13d0f8989a57d68f16b9d5efe69933be70561a81b7d8fc746