Skip to content

Add Playwright E2E test to trash and restore page from trash #38762

Add Playwright E2E test to trash and restore page from trash

Add Playwright E2E test to trash and restore page from trash #38762

Triggered via pull request December 27, 2024 16:02
Status Success
Total duration 4m 47s
Artifacts 2

end-to-end-tests.yml

on: pull_request
Matrix: e2e-tests
Slack Notifications  /  Prepare notifications
Slack Notifications / Prepare notifications
Slack Notifications  /  Cancelled notifications
Slack Notifications / Cancelled notifications
Slack Notifications  /  Failure notifications
Slack Notifications / Failure notifications
Slack Notifications  /  Fixed notifications
Slack Notifications / Fixed notifications
Slack Notifications  /  Success notifications
Slack Notifications / Success notifications
Failed workflow tasks
0s
Failed workflow tasks
Fit to window
Zoom out
Zoom in

Annotations

6 errors, 2 warnings, and 2 notices
[chromium] › install.test.js:34:6 › WordPress installation process › should install WordPress with pre-existing database credentials: 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
[chromium] › pages/restore-page-from-trash.test.js:21:2 › Trash and Restore page › trashes a page: tests/e2e/specs/pages/restore-page-from-trash.test.js#L14
2) [chromium] › pages/restore-page-from-trash.test.js:21:2 › Trash and Restore page › trashes a page Error: Not logged in 12 | pageTitle = `Test Page for Trash`; 13 | // Ensure we start on the admin "Pages" screen > 14 | await admin.visitAdminPage( 'edit.php', 'post_type=page' ); | ^ 15 | } ); 16 | 17 | test.afterAll( async ( { requestUtils } ) => { 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 /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/pages/restore-page-from-trash.test.js:14:3
[chromium] › pages/restore-page-from-trash.test.js:21:2 › Trash and Restore page › trashes a page: tests/e2e/specs/pages/restore-page-from-trash.test.js#L14
2) [chromium] › pages/restore-page-from-trash.test.js:21:2 › Trash and Restore page › trashes a page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Not logged in 12 | pageTitle = `Test Page for Trash`; 13 | // Ensure we start on the admin "Pages" screen > 14 | await admin.visitAdminPage( 'edit.php', 'post_type=page' ); | ^ 15 | } ); 16 | 17 | test.afterAll( async ( { requestUtils } ) => { 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 /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/pages/restore-page-from-trash.test.js:14:3
[chromium] › install.test.js:34:6 › WordPress installation process › should install WordPress with pre-existing database credentials: 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
[chromium] › pages/restore-page-from-trash.test.js:21:2 › Trash and Restore page › trashes a page: tests/e2e/specs/pages/restore-page-from-trash.test.js#L14
2) [chromium] › pages/restore-page-from-trash.test.js:21:2 › Trash and Restore page › trashes a page Error: Not logged in 12 | pageTitle = `Test Page for Trash`; 13 | // Ensure we start on the admin "Pages" screen > 14 | await admin.visitAdminPage( 'edit.php', 'post_type=page' ); | ^ 15 | } ); 16 | 17 | test.afterAll( async ( { requestUtils } ) => { 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 /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/pages/restore-page-from-trash.test.js:14:3
[chromium] › pages/restore-page-from-trash.test.js:21:2 › Trash and Restore page › trashes a page: tests/e2e/specs/pages/restore-page-from-trash.test.js#L14
2) [chromium] › pages/restore-page-from-trash.test.js:21:2 › Trash and Restore page › trashes a page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Not logged in 12 | pageTitle = `Test Page for Trash`; 13 | // Ensure we start on the admin "Pages" screen > 14 | await admin.visitAdminPage( 'edit.php', 'post_type=page' ); | ^ 15 | } ); 16 | 17 | test.afterAll( async ( { requestUtils } ) => { 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 /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/pages/restore-page-from-trash.test.js:14:3
Test with SCRIPT_DEBUG disabled / Run E2E tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test with SCRIPT_DEBUG enabled / Run E2E tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
🎭 Playwright Run Summary
2 flaky [chromium] › install.test.js:34:6 › WordPress installation process › should install WordPress with pre-existing database credentials [chromium] › pages/restore-page-from-trash.test.js:21:2 › Trash and Restore page › trashes a page 23 passed (51.2s)
🎭 Playwright Run Summary
2 flaky [chromium] › install.test.js:34:6 › WordPress installation process › should install WordPress with pre-existing database credentials [chromium] › pages/restore-page-from-trash.test.js:21:2 › Trash and Restore page › trashes a page 23 passed (56.9s)

Artifacts

Produced during runtime
Name Size
failures-artifacts-12518093759
689 KB
failures-artifacts-SCRIPT_DEBUG-12518093759
711 KB