feat!: ssr #9657
Annotations
10 errors, 1 warning, and 1 notice
Run tests:
core/pfe-core/controllers/internals-controller.ts#L169
1) elements/pf-back-to-top/test/pf-back-to-top.e2e.ts:14:3 › pf-back-to-top › ssr ────────────────
Error: ReferenceError: HTMLElement is not defined
at core/pfe-core/controllers/internals-controller.ts:169
167 |
168 | private get element() {
> 169 | return this.host instanceof HTMLElement ? this.host : this.options?.getHTMLElement?.();
| ^
170 | }
171 |
172 | private internals!: ElementInternals;
at InternalsController.element (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:169:33)
at InternalsController.attach (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:220:29)
at InternalsController.set [as role] (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:43:12)
at new InternalsController (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:86:13)
at Function.of (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:80:10)
at new PfButton (file:///home/runner/work/patternfly-elements/patternfly-elements/elements/pf-button/pf-button.ts:207:36)
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 LitElementRenderer.renderShadow (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/lit-element-renderer.ts:100:12)
at renderShadow.next (<anonymous>)
at renderTemplateResult (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:856:11)
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:14:10)
at file:///home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:43:31
expect(received).toEqual(expected) // deep equality
Expected: 200
Received: 500
at InternalsController.element (/home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-con
|
Run tests:
tools/pfe-tools/test/playwright/SSRPage.ts#L97
2) elements/pf-background-image/test/pf-background-image.e2e.ts:14:3 › pf-background-image › ssr ─
Error: Not Found
expect(received).toEqual(expected) // deep equality
Expected: 200
Received: 404
at tools/pfe-tools/test/playwright/SSRPage.ts:97
95 | private async snapshot(url: string) {
96 | const response = await this.page.goto(url, { waitUntil: 'load' });
> 97 | expect(response?.status(), { message: await response?.text() }).toEqual(200);
| ^
98 | const snapshot = await this.page.screenshot({ fullPage: true });
99 | expect(snapshot).toMatchSnapshot(`${this.config.tagName}-${basename(url)}.png`);
100 | }
at SSRPage.snapshot (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:97:69)
at SSRPage.snapshots (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:84:9)
at /home/runner/work/patternfly-elements/patternfly-elements/elements/pf-background-image/test/pf-background-image.e2e.ts:23:5
|
Run tests:
core/pfe-core/controllers/internals-controller.ts#L169
3) elements/pf-button/test/pf-button.e2e.ts:14:3 › pf-button › ssr ───────────────────────────────
Error: ReferenceError: HTMLElement is not defined
at core/pfe-core/controllers/internals-controller.ts:169
167 |
168 | private get element() {
> 169 | return this.host instanceof HTMLElement ? this.host : this.options?.getHTMLElement?.();
| ^
170 | }
171 |
172 | private internals!: ElementInternals;
at InternalsController.element (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:169:33)
at InternalsController.attach (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:220:29)
at InternalsController.set [as role] (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:43:12)
at new InternalsController (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:86:13)
at Function.of (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:80:10)
at new PfButton (file:///home/runner/work/patternfly-elements/patternfly-elements/elements/pf-button/pf-button.ts:207:36)
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:14:10)
at file:///home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:43:31
expect(received).toEqual(expected) // deep equality
Expected: 200
Received: 500
at InternalsController.element (/home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:169:33)
at InternalsController.attach (/home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:220:29)
at InternalsController.set (/home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:43:12)
at InternalsController (/home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:86:13)
at Function.of (/home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:80:10)
|
Run tests:
core/pfe-core/controllers/internals-controller.ts#L169
4) elements/pf-chip/test/pf-chip.e2e.ts:14:3 › pf-chip › ssr ─────────────────────────────────────
Error: ReferenceError: HTMLElement is not defined
at core/pfe-core/controllers/internals-controller.ts:169
167 |
168 | private get element() {
> 169 | return this.host instanceof HTMLElement ? this.host : this.options?.getHTMLElement?.();
| ^
170 | }
171 |
172 | private internals!: ElementInternals;
at InternalsController.element (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:169:33)
at InternalsController.attach (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:220:29)
at InternalsController.set [as role] (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:43:12)
at new InternalsController (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:86:13)
at Function.of (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:80:10)
at new PfButton (file:///home/runner/work/patternfly-elements/patternfly-elements/elements/pf-button/pf-button.ts:207:36)
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 LitElementRenderer.renderShadow (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/lit-element-renderer.ts:100:12)
at renderShadow.next (<anonymous>)
at renderTemplateResult (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:856:11)
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:14:10)
at file:///home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:43:31
expect(received).toEqual(expected) // deep equality
Expected: 200
Received: 500
at InternalsController.element (/home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-con
|
Run tests:
core/pfe-core/controllers/internals-controller.ts#L169
5) elements/pf-clipboard-copy/test/pf-clipboard-copy.e2e.ts:14:3 › pf-clipboard-copy › ssr ───────
Error: ReferenceError: HTMLElement is not defined
at core/pfe-core/controllers/internals-controller.ts:169
167 |
168 | private get element() {
> 169 | return this.host instanceof HTMLElement ? this.host : this.options?.getHTMLElement?.();
| ^
170 | }
171 |
172 | private internals!: ElementInternals;
at InternalsController.element (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:169:33)
at InternalsController.attach (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:220:29)
at InternalsController.set [as role] (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:43:12)
at new InternalsController (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:86:13)
at Function.of (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:80:10)
at new PfButton (file:///home/runner/work/patternfly-elements/patternfly-elements/elements/pf-button/pf-button.ts:207:36)
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 LitElementRenderer.renderShadow (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/lit-element-renderer.ts:100:12)
at renderShadow.next (<anonymous>)
at renderTemplateResult (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:856:11)
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:14:10)
at file:///home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:43:31
expect(received).toEqual(expected) // deep equality
Expected: 200
Received: 500
at InternalsController.element (/home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-con
|
Run tests:
elements/pf-code-block/pf-code-block.ts#L47
6) elements/pf-code-block/test/pf-code-block.e2e.ts:14:3 › pf-code-block › ssr ───────────────────
Error: TypeError: this.querySelector is not a function
at elements/pf-code-block/pf-code-block.ts:47
45 |
46 | get #content() {
> 47 | const script = this.querySelector<HTMLScriptElement>('script[type]');
| ^
48 | if (script?.type !== 'text/javascript-sample'
49 | && !!script?.type.match(/(j(ava)?|ecma|live)script/)) {
50 | return '';
at PfCodeBlock._PfCodeBlock_content_get (file:///home/runner/work/patternfly-elements/patternfly-elements/elements/pf-code-block/pf-code-block.ts:47:25)
at __classPrivateFieldGet (/home/runner/work/patternfly-elements/patternfly-elements/node_modules/tslib/tslib.js:328:52)
at PfCodeBlock.render (file:///home/runner/work/patternfly-elements/patternfly-elements/elements/pf-code-block/pf-code-block.ts:65:35)
at LitElementRenderer.renderShadow (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/lit-element-renderer.ts:100:46)
at renderShadow.next (<anonymous>)
at renderTemplateResult (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:856:11)
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:14:10)
at file:///home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:43:31
expect(received).toEqual(expected) // deep equality
Expected: 200
Received: 500
at PfCodeBlock._PfCodeBlock_content_get (/home/runner/work/patternfly-elements/patternfly-elements/elements/pf-code-block/pf-code-block.ts:47:25)
at __classPrivateFieldGet (/home/runner/work/patternfly-elements/patternfly-elements/node_modules/tslib/tslib.js:328:52)
at PfCodeBlock.render (/home/runner/work/patternfly-elements/patternfly-elements/elements/pf-code-block/pf-code-block.ts:65:35)
at LitElementRenderer.renderShadow (/home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/lit-element-renderer.ts:100:46)
at renderTemplateResult (/home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:856:11)
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/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:652:12)
at render (/home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render.ts:44:10)
at co
|
Run tests:
elements/pf-dropdown/pf-dropdown.js#L57
7) elements/pf-dropdown/test/pf-dropdown.e2e.ts:14:3 › pf-dropdown › ssr ─────────────────────────
Error: TypeError: this.host.addEventListener is not a function
at elements/pf-dropdown/pf-dropdown.js:57
55 | _PfDropdown_instances.add(this);
56 | /**
> 57 | * When disabled, the dropdown can still be toggled open and closed via keyboard, but menu items cannot be activated.
| ^
58 | */
59 | this.disabled = false;
60 | /**
at i.attachListeners (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit/context/src/lib/controllers/context-provider.ts:158:15)
at new i (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit/context/src/lib/controllers/context-provider.ts:89:10)
at i (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit/context/src/lib/decorators/provide.ts:74:38)
at forEach (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit/reactive-element/src/reactive-element.ts:1019:7)
at Array.forEach (<anonymous>)
at PfDropdown.__initialize [as _$Ev] (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit/reactive-element/src/reactive-element.ts:1018:65)
at new constructor (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit/reactive-element/src/reactive-element.ts:1000:10)
at new s (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/lit-element/src/lit-element.ts:122:1)
at new PfDropdown (file:///home/runner/work/patternfly-elements/patternfly-elements/elements/pf-dropdown/pf-dropdown.js:57: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:14:10)
at file:///home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:43:31
expect(received).toEqual(expected) // deep equality
Expected: 200
Received: 500
at i.attachListeners (/home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit/context/src/lib/controllers/context-provider.ts:158:15)
at i (/home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit/context/src/lib/controllers/context-provider.ts:89:10)
at i (/home/runner/work/patternfly-elements/patternfly-elements/n
|
Run tests:
tools/pfe-tools/test/playwright/SSRPage.ts#L97
8) elements/pf-icon/test/pf-icon.e2e.ts:14:3 › pf-icon › ssr ─────────────────────────────────────
Error: Not Found
expect(received).toEqual(expected) // deep equality
Expected: 200
Received: 404
at tools/pfe-tools/test/playwright/SSRPage.ts:97
95 | private async snapshot(url: string) {
96 | const response = await this.page.goto(url, { waitUntil: 'load' });
> 97 | expect(response?.status(), { message: await response?.text() }).toEqual(200);
| ^
98 | const snapshot = await this.page.screenshot({ fullPage: true });
99 | expect(snapshot).toMatchSnapshot(`${this.config.tagName}-${basename(url)}.png`);
100 | }
at SSRPage.snapshot (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:97:69)
at SSRPage.snapshots (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:84:9)
at /home/runner/work/patternfly-elements/patternfly-elements/elements/pf-icon/test/pf-icon.e2e.ts:23:5
|
Run tests:
elements/pf-jump-links/pf-jump-links.ts#L78
9) elements/pf-jump-links/test/pf-jump-links.e2e.ts:14:3 › pf-jump-links › ssr ───────────────────
Error: TypeError: this.querySelectorAll is not a function
at elements/pf-jump-links/pf-jump-links.ts:78
76 | @Property() label?: string;
77 |
> 78 | #kids = this.querySelectorAll<LitElement>(':is(pf-jump-links-item, pf-jump-links-list)');
| ^
79 |
80 | #tabindex?: RovingTabindexController<HTMLAnchorElement>;
81 |
at new PfJumpLinks (file:///home/runner/work/patternfly-elements/patternfly-elements/elements/pf-jump-links/pf-jump-links.ts:78:16)
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:14:10)
at file:///home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:43:31
expect(received).toEqual(expected) // deep equality
Expected: 200
Received: 500
at PfJumpLinks (/home/runner/work/patternfly-elements/patternfly-elements/elements/pf-jump-links/pf-jump-links.ts:78:16)
at LitElementRenderer (/home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/lit-element-renderer.ts:35:20)
at getElementRenderer (/home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/element-renderer.ts:41:14)
at renderTemplateResult (/home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:781:26)
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/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:652:12)
at render (/home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render.ts:44:10)
at collectResult (/home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-result.ts:27:14)
at ssr (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/ssr/ssr.ts:7:10)
at renderGlobal (/home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/ssr/global.ts:14:10)
at /home/runner
|
Run tests:
core/pfe-core/controllers/internals-controller.ts#L169
10) elements/pf-label/test/pf-label.e2e.ts:14:3 › pf-label › ssr ─────────────────────────────────
Error: ReferenceError: HTMLElement is not defined
at core/pfe-core/controllers/internals-controller.ts:169
167 |
168 | private get element() {
> 169 | return this.host instanceof HTMLElement ? this.host : this.options?.getHTMLElement?.();
| ^
170 | }
171 |
172 | private internals!: ElementInternals;
at InternalsController.element (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:169:33)
at InternalsController.attach (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:220:29)
at InternalsController.set [as role] (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:43:12)
at new InternalsController (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:86:13)
at Function.of (file:///home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-controller.ts:80:10)
at new PfButton (file:///home/runner/work/patternfly-elements/patternfly-elements/elements/pf-button/pf-button.ts:207:36)
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 LitElementRenderer.renderShadow (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/lit-element-renderer.ts:100:12)
at renderShadow.next (<anonymous>)
at renderTemplateResult (file:///home/runner/work/patternfly-elements/patternfly-elements/node_modules/@lit-labs/ssr/src/lib/render-value.ts:856:11)
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:14:10)
at file:///home/runner/work/patternfly-elements/patternfly-elements/tools/pfe-tools/test/playwright/SSRPage.ts:43:31
expect(received).toEqual(expected) // deep equality
Expected: 200
Received: 500
at InternalsController.element (/home/runner/work/patternfly-elements/patternfly-elements/core/pfe-core/controllers/internals-con
|
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
21 failed
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-button/test/pf-button.e2e.ts:14:3 › pf-button › 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-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-tooltip/test/pf-tooltip.e2e.ts:14:3 › pf-tooltip › ssr ─────────────────────────────
9 passed (21.1s)
|
Loading