Skip to content

feat(core): scroll-spy-controller hashchange #10437

feat(core): scroll-spy-controller hashchange

feat(core): scroll-spy-controller hashchange #10437

Triggered via pull request April 6, 2025 11:43
Status Failure
Total duration 2m 27s
Artifacts 1

tests.yml

on: pull_request
Matrix: Compile project
SSR Tests (Playwright)
1m 33s
SSR Tests (Playwright)
Lint files
1m 5s
Lint files
Unit Tests (Web Test Runner)
1m 4s
Unit Tests (Web Test Runner)
Verify that build runs on Windows
2m 17s
Verify that build runs on Windows
Publish Playwright Report
15s
Publish Playwright Report
Validate successful build on main
7s
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#L39
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:39 37 | static { 38 | if (isServer) { > 39 | addEventListener('scroll', () => { | ^ 40 | if (Math.round(window.innerHeight + window.scrollY) >= document.body.scrollHeight) { 41 | this.#instances.forEach(ssc => { 42 | ssc.#setActive(ssc.#linkChildren.at(-1)); at file:///__w/patternfly-elements/patternfly-elements/core/pfe-core/controllers/scroll-spy-controller.ts:39:7 at file:///__w/patternfly-elements/patternfly-elements/core/pfe-core/controllers/scroll-spy-controller.ts:52: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:39:7 at /__w/patternfly-elements/patternfly-elements/core/pfe-core/controllers/scroll-spy-controller.ts:52: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.41 MB
sha256:0a468b60684c34e706333408b8080a7a4c7d46dfd3423d2dcaed5ff634d22378