Skip to content

feat(core): hasSlotted SSR hints #10355

feat(core): hasSlotted SSR hints

feat(core): hasSlotted SSR hints #10355

Triggered via pull request December 4, 2024 12:04
Status Failure
Total duration 2m 47s
Artifacts 1

tests.yml

on: pull_request
Matrix: Compile project
SSR Tests (Playwright)
1m 44s
SSR Tests (Playwright)
Lint files
31s
Lint files
Unit Tests (Web Test Runner)
1m 7s
Unit Tests (Web Test Runner)
Verify that build runs on Windows
1m 49s
Verify that build runs on Windows
Publish Playwright Report
13s
Publish Playwright Report
Validate successful build on main
5s
Validate successful build on main
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 7 warnings, and 1 notice
elements/pf-accordion/test/pf-accordion.e2e.ts:14:3 › pf-accordion › ssr: tools/pfe-tools/ssr/global.ts#L13
1) elements/pf-accordion/test/pf-accordion.e2e.ts:14:3 › pf-accordion › ssr ────────────────────── Error: TypeError: w.createTreeWalker is not a function at tools/pfe-tools/ssr/global.ts:13 11 | // avoid tsconfig problems 12 | await import(['@patternfly', 'pfe-core', 'ssr-shims.js'].join('/')); > 13 | const { ssr } = await import('./ssr.js'); | ^ 14 | await Promise.all(importSpecifiers.map(x => import(x))); 15 | return ssr(html); 16 | } at file:///__w/patternfly-elements/patternfly-elements/node_modules/lit-html/src/lit-html.ts:716:18 at ModuleJob.run (node:internal/modules/esm/module_job:218:25) at ModuleLoader.import (node:internal/modules/esm/loader:329:24) at renderGlobal (file:///__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:13:19) 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/node_modules/lit-html/src/lit-html.ts:716:18 at renderGlobal (/__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:13:19) 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-accordion/test/pf-accordion.e2e.ts:23:5
elements/pf-avatar/test/pf-avatar.e2e.ts:14:3 › pf-avatar › ssr: tools/pfe-tools/ssr/global.ts#L13
2) elements/pf-avatar/test/pf-avatar.e2e.ts:14:3 › pf-avatar › ssr ─────────────────────────────── Error: TypeError: w.createTreeWalker is not a function at tools/pfe-tools/ssr/global.ts:13 11 | // avoid tsconfig problems 12 | await import(['@patternfly', 'pfe-core', 'ssr-shims.js'].join('/')); > 13 | const { ssr } = await import('./ssr.js'); | ^ 14 | await Promise.all(importSpecifiers.map(x => import(x))); 15 | return ssr(html); 16 | } at file:///__w/patternfly-elements/patternfly-elements/node_modules/lit-html/src/lit-html.ts:716:18 at ModuleJob.run (node:internal/modules/esm/module_job:218:25) at ModuleLoader.import (node:internal/modules/esm/loader:329:24) at renderGlobal (file:///__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:13:19) 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/node_modules/lit-html/src/lit-html.ts:716:18 at renderGlobal (/__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:13:19) 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-avatar/test/pf-avatar.e2e.ts:23:5
elements/pf-back-to-top/test/pf-back-to-top.e2e.ts:14:3 › pf-back-to-top › ssr: tools/pfe-tools/ssr/global.ts#L13
3) elements/pf-back-to-top/test/pf-back-to-top.e2e.ts:14:3 › pf-back-to-top › ssr ──────────────── Error: TypeError: w.createTreeWalker is not a function at tools/pfe-tools/ssr/global.ts:13 11 | // avoid tsconfig problems 12 | await import(['@patternfly', 'pfe-core', 'ssr-shims.js'].join('/')); > 13 | const { ssr } = await import('./ssr.js'); | ^ 14 | await Promise.all(importSpecifiers.map(x => import(x))); 15 | return ssr(html); 16 | } at file:///__w/patternfly-elements/patternfly-elements/node_modules/lit-html/src/lit-html.ts:716:18 at ModuleJob.run (node:internal/modules/esm/module_job:218:25) at ModuleLoader.import (node:internal/modules/esm/loader:329:24) at renderGlobal (file:///__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:13:19) 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/node_modules/lit-html/src/lit-html.ts:716:18 at renderGlobal (/__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:13:19) 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-back-to-top/test/pf-back-to-top.e2e.ts:23:5
elements/pf-background-image/test/pf-background-image.e2e.ts:14:3 › pf-background-image › ssr: tools/pfe-tools/ssr/global.ts#L13
4) elements/pf-background-image/test/pf-background-image.e2e.ts:14:3 › pf-background-image › ssr ─ Error: TypeError: w.createTreeWalker is not a function at tools/pfe-tools/ssr/global.ts:13 11 | // avoid tsconfig problems 12 | await import(['@patternfly', 'pfe-core', 'ssr-shims.js'].join('/')); > 13 | const { ssr } = await import('./ssr.js'); | ^ 14 | await Promise.all(importSpecifiers.map(x => import(x))); 15 | return ssr(html); 16 | } at file:///__w/patternfly-elements/patternfly-elements/node_modules/lit-html/src/lit-html.ts:716:18 at ModuleJob.run (node:internal/modules/esm/module_job:218:25) at ModuleLoader.import (node:internal/modules/esm/loader:329:24) at renderGlobal (file:///__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:13:19) 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/node_modules/lit-html/src/lit-html.ts:716:18 at renderGlobal (/__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:13:19) 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-background-image/test/pf-background-image.e2e.ts:23:5
elements/pf-badge/test/pf-badge.e2e.ts:14:3 › pf-badge › ssr: tools/pfe-tools/ssr/global.ts#L13
5) elements/pf-badge/test/pf-badge.e2e.ts:14:3 › pf-badge › ssr ────────────────────────────────── Error: TypeError: w.createTreeWalker is not a function at tools/pfe-tools/ssr/global.ts:13 11 | // avoid tsconfig problems 12 | await import(['@patternfly', 'pfe-core', 'ssr-shims.js'].join('/')); > 13 | const { ssr } = await import('./ssr.js'); | ^ 14 | await Promise.all(importSpecifiers.map(x => import(x))); 15 | return ssr(html); 16 | } at file:///__w/patternfly-elements/patternfly-elements/node_modules/lit-html/src/lit-html.ts:716:18 at ModuleJob.run (node:internal/modules/esm/module_job:218:25) at ModuleLoader.import (node:internal/modules/esm/loader:329:24) at renderGlobal (file:///__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:13:19) 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/node_modules/lit-html/src/lit-html.ts:716:18 at renderGlobal (/__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:13:19) 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-badge/test/pf-badge.e2e.ts:23:5
elements/pf-banner/test/pf-banner.e2e.ts:14:3 › pf-banner › ssr: tools/pfe-tools/ssr/global.ts#L13
6) elements/pf-banner/test/pf-banner.e2e.ts:14:3 › pf-banner › ssr ─────────────────────────────── Error: TypeError: w.createTreeWalker is not a function at tools/pfe-tools/ssr/global.ts:13 11 | // avoid tsconfig problems 12 | await import(['@patternfly', 'pfe-core', 'ssr-shims.js'].join('/')); > 13 | const { ssr } = await import('./ssr.js'); | ^ 14 | await Promise.all(importSpecifiers.map(x => import(x))); 15 | return ssr(html); 16 | } at file:///__w/patternfly-elements/patternfly-elements/node_modules/lit-html/src/lit-html.ts:716:18 at ModuleJob.run (node:internal/modules/esm/module_job:218:25) at ModuleLoader.import (node:internal/modules/esm/loader:329:24) at renderGlobal (file:///__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:13:19) 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/node_modules/lit-html/src/lit-html.ts:716:18 at renderGlobal (/__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:13:19) 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-banner/test/pf-banner.e2e.ts:23:5
elements/pf-button/test/pf-button.e2e.ts:14:3 › pf-button › ssr: tools/pfe-tools/ssr/global.ts#L13
7) elements/pf-button/test/pf-button.e2e.ts:14:3 › pf-button › ssr ─────────────────────────────── Error: TypeError: w.createTreeWalker is not a function at tools/pfe-tools/ssr/global.ts:13 11 | // avoid tsconfig problems 12 | await import(['@patternfly', 'pfe-core', 'ssr-shims.js'].join('/')); > 13 | const { ssr } = await import('./ssr.js'); | ^ 14 | await Promise.all(importSpecifiers.map(x => import(x))); 15 | return ssr(html); 16 | } at file:///__w/patternfly-elements/patternfly-elements/node_modules/lit-html/src/lit-html.ts:716:18 at ModuleJob.run (node:internal/modules/esm/module_job:218:25) at ModuleLoader.import (node:internal/modules/esm/loader:329:24) at renderGlobal (file:///__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:13:19) 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/node_modules/lit-html/src/lit-html.ts:716:18 at renderGlobal (/__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:13:19) 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-button/test/pf-button.e2e.ts:23:5
elements/pf-card/test/pf-card.e2e.ts:14:3 › pf-card › ssr: tools/pfe-tools/ssr/global.ts#L13
8) elements/pf-card/test/pf-card.e2e.ts:14:3 › pf-card › ssr ───────────────────────────────────── Error: TypeError: w.createTreeWalker is not a function at tools/pfe-tools/ssr/global.ts:13 11 | // avoid tsconfig problems 12 | await import(['@patternfly', 'pfe-core', 'ssr-shims.js'].join('/')); > 13 | const { ssr } = await import('./ssr.js'); | ^ 14 | await Promise.all(importSpecifiers.map(x => import(x))); 15 | return ssr(html); 16 | } at file:///__w/patternfly-elements/patternfly-elements/node_modules/lit-html/src/lit-html.ts:716:18 at ModuleJob.run (node:internal/modules/esm/module_job:218:25) at ModuleLoader.import (node:internal/modules/esm/loader:329:24) at renderGlobal (file:///__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:13:19) 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/node_modules/lit-html/src/lit-html.ts:716:18 at renderGlobal (/__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:13:19) 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-card/test/pf-card.e2e.ts:23:5
elements/pf-card/test/pf-card.e2e.ts:26:3 › pf-card › ssr hints: tools/pfe-tools/test/playwright/SSRPage.ts#L143
9) elements/pf-card/test/pf-card.e2e.ts:26:3 › pf-card › ssr hints ─────────────────────────────── Error: page.$eval: Failed to find element matching selector "pf-card" at tools/pfe-tools/test/playwright/SSRPage.ts:143 141 | await this.initServer(); 142 | await this.initPage(); > 143 | await this.page.$eval(tagName, el => (el as LitElement).updateComplete); | ^ 144 | } 145 | } 146 | at SSRPage.updateCompleteFor (/__w/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:143:21) at /__w/patternfly-elements/patternfly-elements/elements/pf-card/test/pf-card.e2e.ts:39:5
elements/pf-chip/test/pf-chip.e2e.ts:14:3 › pf-chip › ssr: tools/pfe-tools/ssr/global.ts#L13
10) elements/pf-chip/test/pf-chip.e2e.ts:14:3 › pf-chip › ssr ──────────────────────────────────── Error: TypeError: w.createTreeWalker is not a function at tools/pfe-tools/ssr/global.ts:13 11 | // avoid tsconfig problems 12 | await import(['@patternfly', 'pfe-core', 'ssr-shims.js'].join('/')); > 13 | const { ssr } = await import('./ssr.js'); | ^ 14 | await Promise.all(importSpecifiers.map(x => import(x))); 15 | return ssr(html); 16 | } at file:///__w/patternfly-elements/patternfly-elements/node_modules/lit-html/src/lit-html.ts:716:18 at ModuleJob.run (node:internal/modules/esm/module_job:218:25) at ModuleLoader.import (node:internal/modules/esm/loader:329:24) at renderGlobal (file:///__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:13:19) 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/node_modules/lit-html/src/lit-html.ts:716:18 at renderGlobal (/__w/patternfly-elements/patternfly-elements/tools/pfe-tools/ssr/global.ts:13:19) 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-chip/test/pf-chip.e2e.ts:23:5
Lint files
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Compile project (20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Compile project (21)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Unit Tests (Web Test Runner)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Validate successful build on main
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
SSR Tests (Playwright)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Publish Playwright Report
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
🎭 Playwright Run Summary
31 failed elements/pf-accordion/test/pf-accordion.e2e.ts:14:3 › pf-accordion › ssr ─────────────────────── elements/pf-avatar/test/pf-avatar.e2e.ts:14:3 › pf-avatar › ssr ──────────────────────────────── elements/pf-back-to-top/test/pf-back-to-top.e2e.ts:14:3 › pf-back-to-top › ssr ───────────────── elements/pf-background-image/test/pf-background-image.e2e.ts:14:3 › pf-background-image › ssr ── elements/pf-badge/test/pf-badge.e2e.ts:14:3 › pf-badge › ssr ─────────────────────────────────── elements/pf-banner/test/pf-banner.e2e.ts:14:3 › pf-banner › ssr ──────────────────────────────── elements/pf-button/test/pf-button.e2e.ts:14:3 › pf-button › ssr ──────────────────────────────── elements/pf-card/test/pf-card.e2e.ts:14:3 › pf-card › ssr ────────────────────────────────────── elements/pf-card/test/pf-card.e2e.ts:26:3 › pf-card › ssr hints ──────────────────────────────── elements/pf-chip/test/pf-chip.e2e.ts:14:3 › pf-chip › ssr ────────────────────────────────────── elements/pf-clipboard-copy/test/pf-clipboard-copy.e2e.ts:14:3 › pf-clipboard-copy › ssr ──────── elements/pf-code-block/test/pf-code-block.e2e.ts:14:3 › pf-code-block › ssr ──────────────────── elements/pf-dropdown/test/pf-dropdown.e2e.ts:14:3 › pf-dropdown › ssr ────────────────────────── elements/pf-icon/test/pf-icon.e2e.ts:14:3 › pf-icon › ssr ────────────────────────────────────── elements/pf-jump-links/test/pf-jump-links.e2e.ts:14:3 › pf-jump-links › ssr ──────────────────── elements/pf-label/test/pf-label.e2e.ts:14:3 › pf-label › ssr ─────────────────────────────────── elements/pf-modal/test/pf-modal.e2e.ts:18:3 › pf-modal › ssr ─────────────────────────────────── elements/pf-panel/test/pf-panel.e2e.ts:14:3 › pf-panel › ssr ─────────────────────────────────── elements/pf-popover/test/pf-popover.e2e.ts:14:3 › pf-popover › ssr ───────────────────────────── elements/pf-progress/test/pf-progress.e2e.ts:14:3 › pf-progress › ssr ────────────────────────── elements/pf-progress-stepper/test/pf-progress-stepper.e2e.ts:14:3 › pf-progress-stepper › ssr ── elements/pf-select/test/pf-select.e2e.ts:14:3 › pf-select › ssr ──────────────────────────────── elements/pf-spinner/test/pf-spinner.e2e.ts:14:3 › pf-spinner › ssr ───────────────────────────── elements/pf-switch/test/pf-switch.e2e.ts:14:3 › pf-switch › ssr ──────────────────────────────── elements/pf-table/test/pf-table.e2e.ts:14:3 › pf-table › ssr ─────────────────────────────────── elements/pf-tabs/test/pf-tabs.e2e.ts:16:3 › pf-tabs › ssr ────────────────────────────────────── elements/pf-text-area/test/pf-text-area.e2e.ts:14:3 › pf-text-area › ssr ─────────────────────── elements/pf-text-input/test/pf-text-input.e2e.ts:14:3 › pf-text-input › ssr ──────────────────── elements/pf-tile/test/pf-tile.e2e.ts:14:3 › pf-tile › ssr ────────────────────────────────────── elements/pf-timestamp/test/pf-timestamp.e2e.ts:15:3 › pf-timestamp › ssr ─────────────────────── elements/pf-tooltip/test/pf-tooltip.e2e.ts:14:3 › pf-tooltip › ssr ─────────────────────────────

Artifacts

Produced during runtime
Name Size
test-report Expired
233 KB