Skip to content

feat(core): slot controller ssr hint attributes #10438

feat(core): slot controller ssr hint attributes

feat(core): slot controller ssr hint attributes #10438

Triggered via pull request April 6, 2025 12:00
Status Failure
Total duration 2m 33s
Artifacts 1

tests.yml

on: pull_request
Matrix: Compile project
SSR Tests (Playwright)
1m 33s
SSR Tests (Playwright)
Lint files
33s
Lint files
Unit Tests (Web Test Runner)
1m 8s
Unit Tests (Web Test Runner)
Verify that build runs on Windows
2m 22s
Verify that build runs on Windows
Publish Playwright Report
21s
Publish Playwright Report
Validate successful build on main
5s
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.2s)

Artifacts

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