Add Playwright e2e test for quick edit of pages #38406
Annotations
3 errors, 1 warning, and 1 notice
Run E2E tests:
tests/e2e/specs/install.test.js#L40
1) [chromium] › install.test.js:34:6 › WordPress installation process › should install WordPress with pre-existing database credentials
Error: should redirect to the installation page
Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected pattern: /wp-admin\/install\.php$/
Received string: "http://localhost:8889/"
Call log:
- should redirect to the installation page with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/"
38 | page,
39 | 'should redirect to the installation page'
> 40 | ).toHaveURL( /wp-admin\/install\.php$/ );
| ^
41 |
42 | await expect(
43 | page.getByText( /WordPress database error/ ),
at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/install.test.js:40:5
|
Run E2E tests:
tests/e2e/specs/pages/quick-edit-page.test.js#L9
2) [chromium] › pages/quick-edit-page.test.js:13:2 › Quick Edit Page › Should be able to quick edit a wp page
Error: Not logged in
7 | test.beforeEach( async ( { requestUtils, admin, editor } ) => {
8 | await requestUtils.deleteAllPages();
> 9 | await admin.createNewPost( { title: 'QA Page', postType: 'page' } );
| ^
10 | await editor.publishPost();
11 | } );
12 |
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 Admin.createNewPost (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/@wordpress/e2e-test-utils-playwright/src/admin/create-new-post.ts:41:2)
at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/pages/quick-edit-page.test.js:9:3
|
Run E2E tests:
tests/e2e/specs/pages/quick-edit-page.test.js#L9
2) [chromium] › pages/quick-edit-page.test.js:13:2 › Quick Edit Page › Should be able to quick edit a wp page
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Not logged in
7 | test.beforeEach( async ( { requestUtils, admin, editor } ) => {
8 | await requestUtils.deleteAllPages();
> 9 | await admin.createNewPost( { title: 'QA Page', postType: 'page' } );
| ^
10 | await editor.publishPost();
11 | } );
12 |
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 Admin.createNewPost (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/@wordpress/e2e-test-utils-playwright/src/admin/create-new-post.ts:41:2)
at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/pages/quick-edit-page.test.js:9:3
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run E2E tests
2 flaky
[chromium] › install.test.js:34:6 › WordPress installation process › should install WordPress with pre-existing database credentials
[chromium] › pages/quick-edit-page.test.js:13:2 › Quick Edit Page › Should be able to quick edit a wp page
22 passed (55.3s)
|
Loading