Rename wp_should_load_separate_core_block_assets
function to wp_should_load_block_assets_on_demand()
#37151
Annotations
10 errors and 1 notice
Run E2E tests:
tests/e2e/specs/gutenberg-plugin.test.js#L48
1) [chromium] › gutenberg-plugin.test.js:25:6 › Gutenberg plugin › should activate ───────────────
SyntaxError: Unexpected token '<', "<br />
<b>"... is not valid JSON
46 | }
47 |
> 48 | plugin = await requestUtils.rest( {
| ^
49 | path: 'wp/v2/plugins/gutenberg/gutenberg',
50 | } );
51 |
at RequestUtils.rest (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/@wordpress/e2e-test-utils-playwright/src/request-utils/rest.ts:127:30)
at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/gutenberg-plugin.test.js:48:12
|
Run E2E tests:
tests/e2e/specs/gutenberg-plugin.test.js#L12
1) [chromium] › gutenberg-plugin.test.js:25:6 › Gutenberg plugin › should activate ───────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
SyntaxError: Unexpected token '<', "<br />
<b>"... is not valid JSON
10 | test.beforeAll( async ( { requestUtils } ) => {
11 | // Install Gutenberg plugin if it's not yet installed.
> 12 | const pluginsMap = await requestUtils.getPluginsMap();
| ^
13 | if ( ! pluginsMap.gutenberg ) {
14 | await requestUtils.rest( {
15 | method: 'POST',
at RequestUtils.rest (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/@wordpress/e2e-test-utils-playwright/src/request-utils/rest.ts:127:30)
at RequestUtils.getPluginsMap (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/@wordpress/e2e-test-utils-playwright/src/request-utils/plugins.ts:23:18)
at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/gutenberg-plugin.test.js:12:22
|
Run E2E tests:
tests/e2e/specs/gutenberg-plugin.test.js#L12
1) [chromium] › gutenberg-plugin.test.js:25:6 › Gutenberg plugin › should activate ───────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
SyntaxError: Unexpected token '<', "<br />
<b>"... is not valid JSON
10 | test.beforeAll( async ( { requestUtils } ) => {
11 | // Install Gutenberg plugin if it's not yet installed.
> 12 | const pluginsMap = await requestUtils.getPluginsMap();
| ^
13 | if ( ! pluginsMap.gutenberg ) {
14 | await requestUtils.rest( {
15 | method: 'POST',
at RequestUtils.rest (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/@wordpress/e2e-test-utils-playwright/src/request-utils/rest.ts:127:30)
at RequestUtils.getPluginsMap (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/@wordpress/e2e-test-utils-playwright/src/request-utils/plugins.ts:23:18)
at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/gutenberg-plugin.test.js:12:22
|
Run E2E tests:
tests/e2e/specs/hello.test.js#L8
2) [chromium] › hello.test.js:7:6 › Hello World › Should load properly ───────────────────────────
Error: Unexpected error in page content: <b>Deprecated</b>: Function wp_should_load_separate_core_block_assets is <strong>deprecated</strong> since version 6.8.0! Use wp_should_load_block_assets_on_demand instead. in <b>/var/www/build/wp-includes/functions.php</b> on line <b>6087</b>
6 | test.describe( 'Hello World', () => {
7 | test( 'Should load properly', async ( { admin, page }) => {
> 8 | await admin.visitAdminPage( '/' );
| ^
9 | await expect(
10 | page.getByRole('heading', { name: 'Welcome to WordPress', level: 2 })
11 | ).toBeVisible();
at Admin.visitAdminPage (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/@wordpress/e2e-test-utils-playwright/src/admin/visit-admin-page.ts:41:9)
at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/hello.test.js:8:3
|
Run E2E tests:
tests/e2e/specs/hello.test.js#L8
2) [chromium] › hello.test.js:7:6 › Hello World › Should load properly ───────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Unexpected error in page content: <b>Deprecated</b>: Function wp_should_load_separate_core_block_assets is <strong>deprecated</strong> since version 6.8.0! Use wp_should_load_block_assets_on_demand instead. in <b>/var/www/build/wp-includes/functions.php</b> on line <b>6087</b>
6 | test.describe( 'Hello World', () => {
7 | test( 'Should load properly', async ( { admin, page }) => {
> 8 | await admin.visitAdminPage( '/' );
| ^
9 | await expect(
10 | page.getByRole('heading', { name: 'Welcome to WordPress', level: 2 })
11 | ).toBeVisible();
at Admin.visitAdminPage (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/@wordpress/e2e-test-utils-playwright/src/admin/visit-admin-page.ts:41:9)
at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/hello.test.js:8:3
|
Run E2E tests:
tests/e2e/specs/hello.test.js#L8
2) [chromium] › hello.test.js:7:6 › Hello World › Should load properly ───────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Unexpected error in page content: <b>Deprecated</b>: Function wp_should_load_separate_core_block_assets is <strong>deprecated</strong> since version 6.8.0! Use wp_should_load_block_assets_on_demand instead. in <b>/var/www/build/wp-includes/functions.php</b> on line <b>6087</b>
6 | test.describe( 'Hello World', () => {
7 | test( 'Should load properly', async ( { admin, page }) => {
> 8 | await admin.visitAdminPage( '/' );
| ^
9 | await expect(
10 | page.getByRole('heading', { name: 'Welcome to WordPress', level: 2 })
11 | ).toBeVisible();
at Admin.visitAdminPage (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/@wordpress/e2e-test-utils-playwright/src/admin/visit-admin-page.ts:41:9)
at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/hello.test.js:8:3
|
Run E2E tests:
tests/e2e/specs/profile/applications-passwords.test.js#L98
3) [chromium] › profile/applications-passwords.test.js:19:6 › Manage applications passwords › should correctly create a new application password
Error: Not logged in
96 |
97 | async create(applicationName = TEST_APPLICATION_NAME) {
> 98 | await this.admin.visitAdminPage( '/profile.php' );
| ^
99 |
100 | const newPasswordField = this.page.getByRole( 'textbox', { name: 'New Application Password Name' } );
101 | await expect( newPasswordField ).toBeVisible();
at Admin.visitAdminPage (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/@wordpress/e2e-test-utils-playwright/src/admin/visit-admin-page.ts:36:9)
at ApplicationPasswords.create (/home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/profile/applications-passwords.test.js:98:3)
at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/profile/applications-passwords.test.js:23:3
|
Run E2E tests:
tests/e2e/specs/profile/applications-passwords.test.js#L116
3) [chromium] › profile/applications-passwords.test.js:19:6 › Manage applications passwords › should correctly create a new application password
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
SyntaxError: Unexpected token '<', "<br />
<b>"... is not valid JSON
114 |
115 | async delete() {
> 116 | await this.requestUtils.rest( {
| ^
117 | method: 'DELETE',
118 | path: '/wp/v2/users/me/application-passwords',
119 | } );
at RequestUtils.rest (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/@wordpress/e2e-test-utils-playwright/src/request-utils/rest.ts:127:30)
at ApplicationPasswords.delete (/home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/profile/applications-passwords.test.js:116:3)
at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/profile/applications-passwords.test.js:16:3
|
Run E2E tests:
tests/e2e/specs/profile/applications-passwords.test.js#L116
3) [chromium] › profile/applications-passwords.test.js:19:6 › Manage applications passwords › should correctly create a new application password
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
SyntaxError: Unexpected token '<', "<br />
<b>"... is not valid JSON
114 |
115 | async delete() {
> 116 | await this.requestUtils.rest( {
| ^
117 | method: 'DELETE',
118 | path: '/wp/v2/users/me/application-passwords',
119 | } );
at RequestUtils.rest (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/@wordpress/e2e-test-utils-playwright/src/request-utils/rest.ts:127:30)
at ApplicationPasswords.delete (/home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/profile/applications-passwords.test.js:116:3)
at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/profile/applications-passwords.test.js:16:3
|
Run E2E tests:
tests/e2e/specs/profile/applications-passwords.test.js#L116
4) [chromium] › profile/applications-passwords.test.js:43:6 › Manage applications passwords › should correctly revoke a single application password
SyntaxError: Unexpected token '<', "<br />
<b>"... is not valid JSON
114 |
115 | async delete() {
> 116 | await this.requestUtils.rest( {
| ^
117 | method: 'DELETE',
118 | path: '/wp/v2/users/me/application-passwords',
119 | } );
at RequestUtils.rest (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/@wordpress/e2e-test-utils-playwright/src/request-utils/rest.ts:127:30)
at ApplicationPasswords.delete (/home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/profile/applications-passwords.test.js:116:3)
at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/profile/applications-passwords.test.js:16:3
|
Run E2E tests
5 failed
[chromium] › gutenberg-plugin.test.js:25:6 › Gutenberg plugin › should activate ────────────────
[chromium] › hello.test.js:7:6 › Hello World › Should load properly ────────────────────────────
[chromium] › profile/applications-passwords.test.js:19:6 › Manage applications passwords › should correctly create a new application password
[chromium] › profile/applications-passwords.test.js:43:6 › Manage applications passwords › should correctly revoke a single application password
[chromium] › profile/applications-passwords.test.js:66:6 › Manage applications passwords › should correctly revoke all the application passwords
18 passed (52.6s)
|
Loading