Skip to content

fix(core): ssr events (#2891) #10436

fix(core): ssr events (#2891)

fix(core): ssr events (#2891) #10436

Triggered via push April 6, 2025 11:41
Status Failure
Total duration 2m 4s
Artifacts 1

tests.yml

on: push
Matrix: Compile project
SSR Tests (Playwright)
1m 33s
SSR Tests (Playwright)
Lint files
1m 9s
Lint files
Unit Tests (Web Test Runner)
1m 8s
Unit Tests (Web Test Runner)
Verify that build runs on Windows
1m 55s
Verify that build runs on Windows
Publish Playwright Report
13s
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.5s)

Artifacts

Produced during runtime
Name Size Digest
test-report Expired
4.41 MB
sha256:dc7a60c556ac4a8e0a61d6ab7c29a78dc88b2ff9c077c4c4d8f039dfe36c89b5