Skip to content

fix(core): ssr events #10430

fix(core): ssr events

fix(core): ssr events #10430

Triggered via pull request April 4, 2025 18:04
Status Failure
Total duration 2m 40s
Artifacts 1

tests.yml

on: pull_request
Matrix: Compile project
SSR Tests (Playwright)
1m 34s
SSR Tests (Playwright)
Lint files
32s
Lint files
Unit Tests (Web Test Runner)
1m 2s
Unit Tests (Web Test Runner)
Verify that build runs on Windows
2m 31s
Verify that build runs on Windows
Publish Playwright Report
14s
Publish Playwright Report
Validate successful build on main
4s
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.6s)

Artifacts

Produced during runtime
Name Size Digest
test-report Expired
4.43 MB
sha256:6ba3f2a4e908e61c96225edfdbf9ce3f9418723b6ee3a57c5e1dd8b48f46eb56