Skip to content

feat(search-input): pf-search-input element #10486

feat(search-input): pf-search-input element

feat(search-input): pf-search-input element #10486

Triggered via pull request May 22, 2025 10:52
Status Failure
Total duration 2m 16s
Artifacts 1

tests.yml

on: pull_request
Matrix: Compile project
SSR Tests (Playwright)
1m 40s
SSR Tests (Playwright)
Lint files
35s
Lint files
Unit Tests (Web Test Runner)
1m 11s
Unit Tests (Web Test Runner)
Verify that build runs on Windows
2m 2s
Verify that build runs on Windows
Publish Playwright Report
16s
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-search-input/test/pf-search-input.e2e.ts:14:3 › pf-search-input › ssr: elements/pf-search-input/pf-search-input.ts#L211
1) elements/pf-search-input/test/pf-search-input.e2e.ts:14:3 › pf-search-input › ssr ───────────── Error: TypeError: document.addEventListener is not a function at elements/pf-search-input/pf-search-input.ts:211 209 | 210 | static { > 211 | document.addEventListener('click', event => { | ^ 212 | for (const instance of PfSearchInput.instances) { 213 | instance._onOutsideClick(event); 214 | } at file:///__w/patternfly-elements/patternfly-elements/elements/pf-search-input/pf-search-input.ts:211:14 at file:///__w/patternfly-elements/patternfly-elements/elements/pf-search-input/pf-search-input.ts:216: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/elements/pf-search-input/pf-search-input.ts:211:14 at /__w/patternfly-elements/patternfly-elements/elements/pf-search-input/pf-search-input.ts:216: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-search-input/test/pf-search-input.e2e.ts:23:5
🎭 Playwright Run Summary
1 failed elements/pf-search-input/test/pf-search-input.e2e.ts:14:3 › pf-search-input › ssr ────────────── 31 passed (22.4s)

Artifacts

Produced during runtime
Name Size Digest
test-report Expired
4.81 MB
sha256:0e37d5e5bb39832f901a3320ee151b2a30c5b0e15d25065ac8bd024dfb3fc569