feat!: ssr #9653
Annotations
10 errors, 2 warnings, and 1 notice
Run tests:
elements/pf-accordion/BaseAccordion.ts#L215
1) elements/pf-accordion/test/pf-accordion.e2e.ts:14:3 › pf-accordion › ssr ──────────────────────
Error: TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at elements/pf-accordion/BaseAccordion.ts:215
213 |
214 | #allHeaders(accordion: BaseAccordion = this): BaseAccordionHeader[] {
> 215 | return Array.from(accordion.children).filter(BaseAccordion.isHeader);
| ^
216 | }
217 |
218 | #allPanels(accordion: BaseAccordion = this): BaseAccordionPanel[] {
at Function.from (<anonymous>)
at PfAccordion.call (file:///home/runner/work/patternfly-elements/patternfly-elements/elements/pf-accordion/BaseAccordion.ts:215:18)
at PfAccordion.headers (file:///home/runner/work/patternfly-elements/patternfly-elements/elements/pf-accordion/BaseAccordion.ts:86:28)
at Object.getItems (file:///home/runner/work/patternfly-elements/patternfly-elements/elements/pf-accordion/BaseAccordion.ts:50:26)
at RovingTabindexController.updateItems (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/roving-tabindex-controller.ts:268:53)
at new RovingTabindexController (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/roving-tabindex-controller.ts:146:10)
at new BaseAccordion (file:///home/runner/work/patternfly-elements/patternfly-elements/elements/pf-accordion/BaseAccordion.ts:49:18)
at new PfAccordion (file:///home/runner/work/patternfly-elements/patternfly-elements/elements/pf-accordion/pf-accordion.js:83:5)
at new LitElementRenderer (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/lit-element-renderer.ts:35:20)
at getElementRenderer (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/element-renderer.ts:41:14)
at renderTemplateResult (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:781:26)
at renderTemplateResult.next (<anonymous>)
at renderValue (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:652:12)
at renderValue.next (<anonymous>)
at renderTemplateResult (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:727:16)
at renderTemplateResult.next (<anonymous>)
at renderValue (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:652:12)
at renderValue.next (<anonymous>)
at render (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render.ts:44:10)
at render.next (<anonymous>)
at collectResult (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-result.ts:27:14)
at ssr (file:///home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/ssr/ssr.ts:7:10)
at renderGlobal (file:///home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/ssr/global.ts:8:10)
at file:///home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:39:29
expect(received).toEqual(expected) // deep equality
Expected: 200
Received: 500
at PfAccordion.call (/home/runner/work/patternfly-elements/patternfly-elements/elements/pf-accordion/BaseAccordion.ts:215:18)
at PfAccordion.headers (/home/runner/work/patternfly-elements/patternfly-elements/elements/pf-accordion/BaseAccordion.ts:86:28)
at Object.getItems (/home/runner/work/patternfly-elements/patternfly-elements/elements/pf-accordion/BaseAccordion.ts:50:26)
at RovingTabindexController.updateItems (/home/runner/work/patternfly-elements/patternfly-elements/core/pfe-cor
|
Run tests:
tools/pfe-tools/test/playwright/SSRPage.ts#L86
2) elements/pf-avatar/test/pf-avatar.e2e.ts:14:3 › pf-avatar › ssr ───────────────────────────────
Error: A snapshot doesn't exist at /home/runner/work/patternfly-elements/patternfly-elements/elements/pf-avatar/test/pf-avatar.e2e.ts-snapshots/pf-avatar-bordered-html-linux.png, writing actual.
at tools/pfe-tools/test/playwright/SSRPage.ts:86
84 | expect(response?.status(), { message: await response?.text() }).toEqual(200);
85 | const snapshot = await this.page.screenshot({ fullPage: true });
> 86 | expect(snapshot).toMatchSnapshot(`${this.config.tagName}-${basename(url)}.png`);
| ^
87 | }
88 | }
89 |
at SSRPage.snapshot (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:86:22)
at SSRPage.snapshots (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:74:9)
at /home/runner/work/patternfly-elements/patternfly-elements/elements/pf-avatar/test/pf-avatar.e2e.ts:23:5
|
Run tests:
tools/pfe-tools/test/playwright/SSRPage.ts#L86
2) elements/pf-avatar/test/pf-avatar.e2e.ts:14:3 › pf-avatar › ssr ───────────────────────────────
Error: A snapshot doesn't exist at /home/runner/work/patternfly-elements/patternfly-elements/elements/pf-avatar/test/pf-avatar.e2e.ts-snapshots/pf-avatar-dark-border-html-linux.png, writing actual.
at tools/pfe-tools/test/playwright/SSRPage.ts:86
84 | expect(response?.status(), { message: await response?.text() }).toEqual(200);
85 | const snapshot = await this.page.screenshot({ fullPage: true });
> 86 | expect(snapshot).toMatchSnapshot(`${this.config.tagName}-${basename(url)}.png`);
| ^
87 | }
88 | }
89 |
at SSRPage.snapshot (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:86:22)
at SSRPage.snapshots (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:74:9)
at /home/runner/work/patternfly-elements/patternfly-elements/elements/pf-avatar/test/pf-avatar.e2e.ts:23:5
|
Run tests:
tools/pfe-tools/test/playwright/SSRPage.ts#L86
2) elements/pf-avatar/test/pf-avatar.e2e.ts:14:3 › pf-avatar › ssr ───────────────────────────────
Error: A snapshot doesn't exist at /home/runner/work/patternfly-elements/patternfly-elements/elements/pf-avatar/test/pf-avatar.e2e.ts-snapshots/pf-avatar-dark-variant-html-linux.png, writing actual.
at tools/pfe-tools/test/playwright/SSRPage.ts:86
84 | expect(response?.status(), { message: await response?.text() }).toEqual(200);
85 | const snapshot = await this.page.screenshot({ fullPage: true });
> 86 | expect(snapshot).toMatchSnapshot(`${this.config.tagName}-${basename(url)}.png`);
| ^
87 | }
88 | }
89 |
at SSRPage.snapshot (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:86:22)
at SSRPage.snapshots (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:74:9)
at /home/runner/work/patternfly-elements/patternfly-elements/elements/pf-avatar/test/pf-avatar.e2e.ts:23:5
|
Run tests:
tools/pfe-tools/test/playwright/SSRPage.ts#L86
2) elements/pf-avatar/test/pf-avatar.e2e.ts:14:3 › pf-avatar › ssr ───────────────────────────────
Error: A snapshot doesn't exist at /home/runner/work/patternfly-elements/patternfly-elements/elements/pf-avatar/test/pf-avatar.e2e.ts-snapshots/pf-avatar-pf-avatar-html-linux.png, writing actual.
at tools/pfe-tools/test/playwright/SSRPage.ts:86
84 | expect(response?.status(), { message: await response?.text() }).toEqual(200);
85 | const snapshot = await this.page.screenshot({ fullPage: true });
> 86 | expect(snapshot).toMatchSnapshot(`${this.config.tagName}-${basename(url)}.png`);
| ^
87 | }
88 | }
89 |
at SSRPage.snapshot (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:86:22)
at SSRPage.snapshots (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:74:9)
at /home/runner/work/patternfly-elements/patternfly-elements/elements/pf-avatar/test/pf-avatar.e2e.ts:23:5
|
Run tests:
tools/pfe-tools/test/playwright/SSRPage.ts#L86
2) elements/pf-avatar/test/pf-avatar.e2e.ts:14:3 › pf-avatar › ssr ───────────────────────────────
Error: A snapshot doesn't exist at /home/runner/work/patternfly-elements/patternfly-elements/elements/pf-avatar/test/pf-avatar.e2e.ts-snapshots/pf-avatar-sizes-html-linux.png, writing actual.
at tools/pfe-tools/test/playwright/SSRPage.ts:86
84 | expect(response?.status(), { message: await response?.text() }).toEqual(200);
85 | const snapshot = await this.page.screenshot({ fullPage: true });
> 86 | expect(snapshot).toMatchSnapshot(`${this.config.tagName}-${basename(url)}.png`);
| ^
87 | }
88 | }
89 |
at SSRPage.snapshot (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:86:22)
at SSRPage.snapshots (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:74:9)
at /home/runner/work/patternfly-elements/patternfly-elements/elements/pf-avatar/test/pf-avatar.e2e.ts:23:5
|
Run tests:
tools/pfe-tools/test/playwright/SSRPage.ts#L86
3) elements/pf-back-to-top/test/pf-back-to-top.e2e.ts:14:3 › pf-back-to-top › ssr ────────────────
Error: A snapshot doesn't exist at /home/runner/work/patternfly-elements/patternfly-elements/elements/pf-back-to-top/test/pf-back-to-top.e2e.ts-snapshots/pf-back-to-top-always-visible-html-linux.png, writing actual.
at tools/pfe-tools/test/playwright/SSRPage.ts:86
84 | expect(response?.status(), { message: await response?.text() }).toEqual(200);
85 | const snapshot = await this.page.screenshot({ fullPage: true });
> 86 | expect(snapshot).toMatchSnapshot(`${this.config.tagName}-${basename(url)}.png`);
| ^
87 | }
88 | }
89 |
at SSRPage.snapshot (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:86:22)
at SSRPage.snapshots (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:74:9)
at /home/runner/work/patternfly-elements/patternfly-elements/elements/pf-back-to-top/test/pf-back-to-top.e2e.ts:23:5
|
Run tests:
elements/pf-back-to-top/pf-back-to-top.ts#L70
3) elements/pf-back-to-top/test/pf-back-to-top.e2e.ts:14:3 › pf-back-to-top › ssr ────────────────
Error: TypeError: this.getRootNode is not a function
at elements/pf-back-to-top/pf-back-to-top.ts:70
68 |
69 | get #rootNode(): Document | ShadowRoot {
> 70 | const root = this.getRootNode();
| ^
71 | if (root instanceof Document || root instanceof ShadowRoot) {
72 | return root;
73 | } else {
at PfBackToTop._PfBackToTop_rootNode_get (file:///home/runner/work/patternfly-elements/patternfly-elements/elements/pf-back-to-top/pf-back-to-top.ts:70:23)
at __classPrivateFieldGet (/home/runner/work/patternfly-elements/patternfly-elements/node_modules/tslib/tslib.js:328:52)
at PfBackToTop.call (file:///home/runner/work/patternfly-elements/patternfly-elements/elements/pf-back-to-top/pf-back-to-top.ts:160:33)
at PfBackToTop.willUpdate (file:///home/runner/work/patternfly-elements/patternfly-elements/elements/pf-back-to-top/pf-back-to-top.ts:97:30)
at LitElementRenderer.connectedCallback (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/lit-element-renderer.ts:72:28)
at renderTemplateResult (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:805:20)
at renderTemplateResult.next (<anonymous>)
at renderValue (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:652:12)
at renderValue.next (<anonymous>)
at renderTemplateResult (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:727:16)
at renderTemplateResult.next (<anonymous>)
at renderValue (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:652:12)
at renderValue.next (<anonymous>)
at render (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render.ts:44:10)
at render.next (<anonymous>)
at collectResult (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-result.ts:27:14)
at ssr (file:///home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/ssr/ssr.ts:7:10)
at renderGlobal (file:///home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/ssr/global.ts:8:10)
at file:///home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:39:29
expect(received).toEqual(expected) // deep equality
Expected: 200
Received: 500
at PfBackToTop._PfBackToTop_rootNode_get (/home/runner/work/patternfly-elements/patternfly-elements/elements/pf-back-to-top/pf-back-to-top.ts:70:23)
at __classPrivateFieldGet (/home/runner/work/patternfly-elements/patternfly-elements/node_modules/tslib/tslib.js:328:52)
at PfBackToTop.call (/home/runner/work/patternfly-elements/patternfly-elements/elements/pf-back-to-top/pf-back-to-top.ts:160:33)
at PfBackToTop.willUpdate (/home/runner/work/patternfly-elements/patternfly-elements/elements/pf-back-to-top/pf-back-to-top.ts:97:30)
at LitElementRenderer.connectedCallback (/home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/lit-element-renderer.ts:72:28)
at renderTemplateResult (/home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:805:20)
at renderValue (/home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:652:12)
at renderTemplateResult (/home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:727:16)
at renderValue (/home/runner/work/patternfly-elements/patter
|
Run tests:
tools/pfe-tools/test/playwright/SSRPage.ts#L86
4) elements/pf-background-image/test/pf-background-image.e2e.ts:14:3 › pf-background-image › ssr ─
Error: A snapshot doesn't exist at /home/runner/work/patternfly-elements/patternfly-elements/elements/pf-background-image/test/pf-background-image.e2e.ts-snapshots/pf-background-image-filter-override-html-linux.png, writing actual.
at tools/pfe-tools/test/playwright/SSRPage.ts:86
84 | expect(response?.status(), { message: await response?.text() }).toEqual(200);
85 | const snapshot = await this.page.screenshot({ fullPage: true });
> 86 | expect(snapshot).toMatchSnapshot(`${this.config.tagName}-${basename(url)}.png`);
| ^
87 | }
88 | }
89 |
at SSRPage.snapshot (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:86:22)
at SSRPage.snapshots (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:74:9)
at /home/runner/work/patternfly-elements/patternfly-elements/elements/pf-background-image/test/pf-background-image.e2e.ts:23:5
|
Run tests:
tools/pfe-tools/test/playwright/SSRPage.ts#L86
4) elements/pf-background-image/test/pf-background-image.e2e.ts:14:3 › pf-background-image › ssr ─
Error: A snapshot doesn't exist at /home/runner/work/patternfly-elements/patternfly-elements/elements/pf-background-image/test/pf-background-image.e2e.ts-snapshots/pf-background-image-pf-background-image-html-linux.png, writing actual.
at tools/pfe-tools/test/playwright/SSRPage.ts:86
84 | expect(response?.status(), { message: await response?.text() }).toEqual(200);
85 | const snapshot = await this.page.screenshot({ fullPage: true });
> 86 | expect(snapshot).toMatchSnapshot(`${this.config.tagName}-${basename(url)}.png`);
| ^
87 | }
88 | }
89 |
at SSRPage.snapshot (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:86:22)
at SSRPage.snapshots (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:74:9)
at /home/runner/work/patternfly-elements/patternfly-elements/elements/pf-background-image/test/pf-background-image.e2e.ts:23:5
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run tests:
elements/pf-background-image/test/pf-background-image.e2e.ts#L1
elements/pf-background-image/test/pf-background-image.e2e.ts took 35.7s
|
Run tests
30 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-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 ─────────────────────────────
|
Loading