Skip to content

Add env and e2e set up #574

Add env and e2e set up

Add env and e2e set up #574

Triggered via pull request October 11, 2024 07:44
Status Failure
Total duration 4m 5s
Artifacts 1

pr-checks.yml

on: pull_request
JS: Lint, Build and Test
1m 41s
JS: Lint, Build and Test
E2E Tests
3m 55s
E2E Tests
Matrix: PHP: Lint, Test
Fit to window
Zoom out
Zoom in

Annotations

12 errors, 7 warnings, and 1 notice
JS: Lint, Build and Test
No overload matches this call.
JS: Lint, Build and Test
Process completed with exit code 1.
[chromium] › wptelegram-comments/public-ui.spec.ts:24:2 › Public UI › Should render the widget : test/e2e/specs/wptelegram-comments/public-ui.spec.ts#L11
1) [chromium] › wptelegram-comments/public-ui.spec.ts:24:2 › Public UI › Should render the widget SyntaxError: Unexpected end of JSON input 9 | 10 | test.beforeAll(async ({ requestUtils }) => { > 11 | await requestUtils.activatePlugin('wp-telegram-comments'); | ^ 12 | rest = new REST(requestUtils); 13 | }); 14 | at RequestUtils.rest (/home/runner/work/wp-projects/wp-projects/node_modules/.pnpm/@WordPress[email protected]_@[email protected][email protected][email protected]/node_modules/@wordpress/e2e-test-utils-playwright/src/request-utils/rest.ts:127:30) at RequestUtils.activatePlugin (/home/runner/work/wp-projects/wp-projects/node_modules/.pnpm/@WordPress[email protected]_@[email protected][email protected][email protected]/node_modules/@wordpress/e2e-test-utils-playwright/src/request-utils/plugins.ts:79:2) at /home/runner/work/wp-projects/wp-projects/test/e2e/specs/wptelegram-comments/public-ui.spec.ts:11:3
[chromium] › wptelegram-comments/public-ui.spec.ts:24:2 › Public UI › Should render the widget : test/e2e/specs/wptelegram-comments/public-ui.spec.ts#L21
1) [chromium] › wptelegram-comments/public-ui.spec.ts:24:2 › Public UI › Should render the widget TypeError: Cannot read properties of undefined (reading 'deleteOption') 19 | test.afterAll(async ({ requestUtils }) => { 20 | await requestUtils.deactivatePlugin('wp-telegram-comments'); > 21 | await rest.deleteOption('wptelegram_comments'); | ^ 22 | }); 23 | 24 | test('Should render the widget ', async ({ at /home/runner/work/wp-projects/wp-projects/test/e2e/specs/wptelegram-comments/public-ui.spec.ts:21:14
[chromium] › wptelegram-comments/public-ui.spec.ts:24:2 › Public UI › Should render the widget : test/e2e/specs/wptelegram-comments/public-ui.spec.ts#L11
1) [chromium] › wptelegram-comments/public-ui.spec.ts:24:2 › Public UI › Should render the widget Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── SyntaxError: Unexpected end of JSON input 9 | 10 | test.beforeAll(async ({ requestUtils }) => { > 11 | await requestUtils.activatePlugin('wp-telegram-comments'); | ^ 12 | rest = new REST(requestUtils); 13 | }); 14 | at RequestUtils.rest (/home/runner/work/wp-projects/wp-projects/node_modules/.pnpm/@WordPress[email protected]_@[email protected][email protected][email protected]/node_modules/@wordpress/e2e-test-utils-playwright/src/request-utils/rest.ts:127:30) at RequestUtils.activatePlugin (/home/runner/work/wp-projects/wp-projects/node_modules/.pnpm/@WordPress[email protected]_@[email protected][email protected][email protected]/node_modules/@wordpress/e2e-test-utils-playwright/src/request-utils/plugins.ts:79:2) at /home/runner/work/wp-projects/wp-projects/test/e2e/specs/wptelegram-comments/public-ui.spec.ts:11:3
[chromium] › wptelegram-comments/public-ui.spec.ts:24:2 › Public UI › Should render the widget : test/e2e/specs/wptelegram-comments/public-ui.spec.ts#L21
1) [chromium] › wptelegram-comments/public-ui.spec.ts:24:2 › Public UI › Should render the widget Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'deleteOption') 19 | test.afterAll(async ({ requestUtils }) => { 20 | await requestUtils.deactivatePlugin('wp-telegram-comments'); > 21 | await rest.deleteOption('wptelegram_comments'); | ^ 22 | }); 23 | 24 | test('Should render the widget ', async ({ at /home/runner/work/wp-projects/wp-projects/test/e2e/specs/wptelegram-comments/public-ui.spec.ts:21:14
[chromium] › wptelegram-comments/public-ui.spec.ts:24:2 › Public UI › Should render the widget : test/e2e/specs/wptelegram-comments/public-ui.spec.ts#L11
1) [chromium] › wptelegram-comments/public-ui.spec.ts:24:2 › Public UI › Should render the widget Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── SyntaxError: Unexpected end of JSON input 9 | 10 | test.beforeAll(async ({ requestUtils }) => { > 11 | await requestUtils.activatePlugin('wp-telegram-comments'); | ^ 12 | rest = new REST(requestUtils); 13 | }); 14 | at RequestUtils.rest (/home/runner/work/wp-projects/wp-projects/node_modules/.pnpm/@WordPress[email protected]_@[email protected][email protected][email protected]/node_modules/@wordpress/e2e-test-utils-playwright/src/request-utils/rest.ts:127:30) at RequestUtils.activatePlugin (/home/runner/work/wp-projects/wp-projects/node_modules/.pnpm/@WordPress[email protected]_@[email protected][email protected][email protected]/node_modules/@wordpress/e2e-test-utils-playwright/src/request-utils/plugins.ts:79:2) at /home/runner/work/wp-projects/wp-projects/test/e2e/specs/wptelegram-comments/public-ui.spec.ts:11:3
[chromium] › wptelegram-comments/public-ui.spec.ts:24:2 › Public UI › Should render the widget : test/e2e/specs/wptelegram-comments/public-ui.spec.ts#L21
1) [chromium] › wptelegram-comments/public-ui.spec.ts:24:2 › Public UI › Should render the widget Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'deleteOption') 19 | test.afterAll(async ({ requestUtils }) => { 20 | await requestUtils.deactivatePlugin('wp-telegram-comments'); > 21 | await rest.deleteOption('wptelegram_comments'); | ^ 22 | }); 23 | 24 | test('Should render the widget ', async ({ at /home/runner/work/wp-projects/wp-projects/test/e2e/specs/wptelegram-comments/public-ui.spec.ts:21:14
[chromium] › wptelegram-comments/settings-page.spec.ts:26:2 › Settings › Should have instructions: test/e2e/specs/wptelegram-comments/settings-page.spec.ts#L10
2) [chromium] › wptelegram-comments/settings-page.spec.ts:26:2 › Settings › Should have instructions SyntaxError: Unexpected end of JSON input 8 | 9 | test.beforeAll(async ({ requestUtils }) => { > 10 | await requestUtils.activatePlugin('wp-telegram-comments'); | ^ 11 | rest = new REST(requestUtils); 12 | }); 13 | at RequestUtils.rest (/home/runner/work/wp-projects/wp-projects/node_modules/.pnpm/@WordPress[email protected]_@[email protected][email protected][email protected]/node_modules/@wordpress/e2e-test-utils-playwright/src/request-utils/rest.ts:127:30) at RequestUtils.activatePlugin (/home/runner/work/wp-projects/wp-projects/node_modules/.pnpm/@WordPress[email protected]_@[email protected][email protected][email protected]/node_modules/@wordpress/e2e-test-utils-playwright/src/request-utils/plugins.ts:79:2) at /home/runner/work/wp-projects/wp-projects/test/e2e/specs/wptelegram-comments/settings-page.spec.ts:10:3
[chromium] › wptelegram-comments/settings-page.spec.ts:26:2 › Settings › Should have instructions: test/e2e/specs/wptelegram-comments/settings-page.spec.ts#L23
2) [chromium] › wptelegram-comments/settings-page.spec.ts:26:2 › Settings › Should have instructions TypeError: Cannot read properties of undefined (reading 'deleteOption') 21 | test.afterAll(async ({ requestUtils }) => { 22 | await requestUtils.deactivatePlugin('wp-telegram-comments'); > 23 | await rest.deleteOption('wptelegram_comments'); | ^ 24 | }); 25 | 26 | test('Should have instructions', async ({ page }) => { at /home/runner/work/wp-projects/wp-projects/test/e2e/specs/wptelegram-comments/settings-page.spec.ts:23:14
[chromium] › wptelegram-comments/settings-page.spec.ts:26:2 › Settings › Should have instructions: test/e2e/specs/wptelegram-comments/settings-page.spec.ts#L10
2) [chromium] › wptelegram-comments/settings-page.spec.ts:26:2 › Settings › Should have instructions Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── SyntaxError: Unexpected end of JSON input 8 | 9 | test.beforeAll(async ({ requestUtils }) => { > 10 | await requestUtils.activatePlugin('wp-telegram-comments'); | ^ 11 | rest = new REST(requestUtils); 12 | }); 13 | at RequestUtils.rest (/home/runner/work/wp-projects/wp-projects/node_modules/.pnpm/@WordPress[email protected]_@[email protected][email protected][email protected]/node_modules/@wordpress/e2e-test-utils-playwright/src/request-utils/rest.ts:127:30) at RequestUtils.activatePlugin (/home/runner/work/wp-projects/wp-projects/node_modules/.pnpm/@WordPress[email protected]_@[email protected][email protected][email protected]/node_modules/@wordpress/e2e-test-utils-playwright/src/request-utils/plugins.ts:79:2) at /home/runner/work/wp-projects/wp-projects/test/e2e/specs/wptelegram-comments/settings-page.spec.ts:10:3
[chromium] › wptelegram-comments/settings-page.spec.ts:26:2 › Settings › Should have instructions: test/e2e/specs/wptelegram-comments/settings-page.spec.ts#L23
2) [chromium] › wptelegram-comments/settings-page.spec.ts:26:2 › Settings › Should have instructions Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'deleteOption') 21 | test.afterAll(async ({ requestUtils }) => { 22 | await requestUtils.deactivatePlugin('wp-telegram-comments'); > 23 | await rest.deleteOption('wptelegram_comments'); | ^ 24 | }); 25 | 26 | test('Should have instructions', async ({ page }) => { at /home/runner/work/wp-projects/wp-projects/test/e2e/specs/wptelegram-comments/settings-page.spec.ts:23:14
PHP: Lint, Test (8.2)
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
PHP: Lint, Test (7.4)
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
PHP: Lint, Test (8.1)
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
PHP: Lint, Test (8.0)
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
JS: Lint, Build and Test
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
PHP: Lint, Test (8.3)
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
E2E Tests
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
🎭 Playwright Run Summary
4 failed [chromium] › wptelegram-comments/public-ui.spec.ts:24:2 › Public UI › Should render the widget [chromium] › wptelegram-comments/settings-page.spec.ts:26:2 › Settings › Should have instructions [chromium] › wptelegram-login/public-ui.spec.ts:47:2 › Public UI › Should render the login button [chromium] › wptelegram-login/settings-page.spec.ts:32:2 › Settings › Should have instructions ─ 10 did not run 1 passed (11.4s)

Artifacts

Produced during runtime
Name Size
failures-artifacts-- Expired
146 KB