Fix Helpers::is_post_edit_page #615
pr-checks.yml
on: pull_request
JS: Lint, Build and Test
3m 27s
E2E Tests
7m 12s
Matrix: PHP: Lint, Test
Annotations
6 errors, 7 warnings, and 1 notice
[chromium] › wptelegram/settings-page-p2tg.spec.ts:291:2 › Settings > P2TG › Should verify that the rules behave as expected:
test/e2e/utils/actions.ts#L33
1) [chromium] › wptelegram/settings-page-p2tg.spec.ts:291:2 › Settings > P2TG › Should verify that the rules behave as expected
TimeoutError: page.waitForResponse: Timeout 10000ms exceeded while waiting for event "response"
at ../utils/actions.ts:33
31 |
32 | async waitForApiResponse(apiPath: string) {
> 33 | return await this.page.waitForResponse((resp) => {
| ^
34 | const url = resp.url();
35 |
36 | return (
at Actions.waitForApiResponse (/home/runner/work/wp-projects/wp-projects/test/e2e/utils/actions.ts:33:26)
at /home/runner/work/wp-projects/wp-projects/test/e2e/specs/wptelegram/settings-page-p2tg.spec.ts:339:17
|
[chromium] › wptelegram/settings-page-p2tg.spec.ts:291:2 › Settings > P2TG › Should verify that the rules behave as expected:
test/e2e/specs/wptelegram/settings-page-p2tg.spec.ts#L342
1) [chromium] › wptelegram/settings-page-p2tg.spec.ts:291:2 › Settings > P2TG › Should verify that the rules behave as expected
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 1
Received: 0
340 |
341 | // Now there should be only one option
> 342 | expect(await options.count()).toBe(1);
| ^
343 | expect(await options.first().textContent()).not.toContain(
344 | 'ABC Cat → ABC Child cat',
345 | );
at /home/runner/work/wp-projects/wp-projects/test/e2e/specs/wptelegram/settings-page-p2tg.spec.ts:342:33
|
[chromium] › wptelegram/settings-page-p2tg.spec.ts:291:2 › Settings > P2TG › Should verify that the rules behave as expected:
test/e2e/specs/wptelegram/settings-page-p2tg.spec.ts#L342
1) [chromium] › wptelegram/settings-page-p2tg.spec.ts:291:2 › Settings > P2TG › Should verify that the rules behave as expected
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 1
Received: 0
340 |
341 | // Now there should be only one option
> 342 | expect(await options.count()).toBe(1);
| ^
343 | expect(await options.first().textContent()).not.toContain(
344 | 'ABC Cat → ABC Child cat',
345 | );
at /home/runner/work/wp-projects/wp-projects/test/e2e/specs/wptelegram/settings-page-p2tg.spec.ts:342:33
|
[chromium] › wptelegram/settings-page.spec.ts:88:2 › Settings › Should validate the bot token from API and fill username:
test/e2e/specs/wptelegram/settings-page.spec.ts#L117
2) [chromium] › wptelegram/settings-page.spec.ts:88:2 › Settings › Should validate the bot token from API and fill username
Error: expect(received).toContain(expected) // indexOf
Expected substring: "The E2E Test Bot (@E2ETestBot)"
Received string: "<!DOCTYPE html><html class=\"wp-toolbar\" lang=\"en-US\" data-theme=\"light\" style=\"color-scheme: light;\"><head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">
<title>WP Telegram ‹ wp-projects — WordPress</title>
<script src=\"https://connect.facebook.net/en_GB/sdk.js?hash=d979e7252b53c9130281888ff108f6ea\" async=\"\" crossorigin=\"anonymous\"></script><script id=\"twitter-widget\" src=\"https://platform.twitter.com/widgets.js\"></script><script id=\"facebook-jssdk\" src=\"//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.9\"></script><script type=\"text/javascript\">
addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(function(){func();});else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '/wp-admin/admin-ajax.php',
pagenow = 'toplevel_page_wptelegram',
typenow = '',
adminpage = 'toplevel_page_wptelegram',
thousandsSeparator = ',',
decimalPoint = '.',
isRtl = 0;
</script>
<link rel=\"stylesheet\" href=\"http://localhost:8889/wp-admin/load-styles.php?c=0&dir=ltr&load%5Bchunk_0%5D=dashicons,admin-bar,common,forms,admin-menu,dashboard,list-tables,edit,revisions,media,themes,about,nav-menus,wp-pointer,widgets&load%5Bchunk_1%5D=,site-icon,l10n,buttons,wp-auth-check&ver=6.6.2\" media=\"all\">
<style>
@media print { #wpadminbar { display:none; } }
</style>
<link rel=\"stylesheet\" id=\"wptelegram-menu-css\" href=\"http://localhost:8889/wp-content/plugins/wptelegram/src/assets/static/css/admin-menu.min.css?ver=4.1.16\" media=\"all\">
<link rel=\"stylesheet\" id=\"wptelegram-admin-settings-0-css\" href=\"http://localhost:8889/wp-content/plugins/wptelegram/src/assets/build/dist/settings-C5HeoNXN.css\" media=\"all\">
<style id=\"wp-emoji-styles-inline-css\">·
img.wp-smiley, img.emoji {
display: inline !important;
border: none !important;
box-shadow: none !important;
height: 1em !important;
width: 1em !important;
margin: 0 0.07em !important;
vertical-align: -0.1em !important;
background: none !important;
padding: 0 !important;
}
</style>
<style id=\"wp-fonts-local\">
@font-face{font-family:Inter;font-style:normal;font-weight:300 900;font-display:fallback;src:url('http://localhost:8889/wp-content/themes/twentytwentyfour/assets/fonts/inter/Inter-VariableFont_slnt,wght.woff2') format('woff2');font-stretch:normal;}
@font-face{font-family:Cardo;font-style:normal;font-weight:400;font-display:fallback;src:url('http://localhost:8889/wp-content/themes/twentytwentyfour/assets/fonts/cardo/cardo_normal_400.woff2') format('woff2');}
@font-face{font-family:Cardo;font-style:italic;font-weight:400;font-display:fallback;src:url('http://localhost:8889/wp-content/themes/twentytwentyfour/assets/fonts/cardo/cardo_italic_400.woff2') format('woff2');}
@font-face{font-family:Cardo;font-style:normal;font-weight:700;font-display:fallback;src:url('http://localhost:8889/wp-content/themes/twentytwentyfour/assets/fonts/cardo/cardo_normal_700.woff2') format('woff2');}
</style>
<script>
window._wpemojiSettings = {\"baseUrl\":\"https:\\/\\/s.w.org\\/images\\/core\\/emoji\\/15.0.3\\/72x72\\/\",\"ext\":\".png\",\"svgUrl\":\"https:\\/\\/s.w.org\\/images\\/core\\/emoji\\/15.0.3\\/svg\\/\",\"svgExt\":\".svg\",\"source\":{\"concatemoji\":\"http:\\/\\/localhost:8889\\/wp-includes\\/js\\/wp-emoji-release.min.js?ver=6.6.2\"}};
/*! This file is auto-generated */
!function(i,n){var o,s,e;function c(e){try{var t={supportTests:e,timestamp:(new Date).valueOf()};sessionStorage.setItem(o,JSON.stringify(t))}catch(e){}}function p(e,t,n){e.clearRect(0,0,e.canvas.width,e.canvas.
|
[chromium] › wptelegram-comments/settings-page.spec.ts:83:2 › Settings › Should clean up the inputs:
test/e2e/specs/wptelegram-comments/settings-page.spec.ts#L98
3) [chromium] › wptelegram-comments/settings-page.spec.ts:83:2 › Settings › Should clean up the inputs
Error: expect(received).toBe(expected) // Object.is equality
Expected: "<script async></script>"
Received: "<script async unknown-attr=\"some-value\"></script>"
96 | });
97 |
> 98 | expect(await page.getByLabel('Code').inputValue()).toBe(
| ^
99 | '<script async></script>',
100 | );
101 |
at /home/runner/work/wp-projects/wp-projects/test/e2e/specs/wptelegram-comments/settings-page.spec.ts:98:54
|
E2E Tests
Process completed with exit code 1.
|
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 (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 (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.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/
|
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/
|
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/
|
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
1 failed
[chromium] › wptelegram/settings-page-p2tg.spec.ts:291:2 › Settings > P2TG › Should verify that the rules behave as expected
2 flaky
[chromium] › wptelegram/settings-page.spec.ts:88:2 › Settings › Should validate the bot token from API and fill username
[chromium] › wptelegram-comments/settings-page.spec.ts:83:2 › Settings › Should clean up the inputs
1 skipped
33 passed (3.7m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
failures-artifacts
Expired
|
616 Bytes |
|