Skip to content

Add Playwright e2e tests to validate taxanomy - Categories & Tags #38420

Add Playwright e2e tests to validate taxanomy - Categories & Tags

Add Playwright e2e tests to validate taxanomy - Categories & Tags #38420

Triggered via pull request December 11, 2024 13:58
Status Failure
Total duration 5m 45s
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

5 errors, 2 warnings, and 2 notices
[chromium] › posts/categories-tests.test.js:54:2 › Category Tests › Should be able to create a new category: tests/e2e/specs/posts/categories-tests.test.js#L8
1) [chromium] › posts/categories-tests.test.js:54:2 › Category Tests › Should be able to create a new category Error: Not logged in 6 | test.describe( 'Category Tests', () => { 7 | async function deleteAllCategories( { page, admin } ) { > 8 | await admin.visitAdminPage( '/edit-tags.php?taxonomy=category' ); | ^ 9 | 10 | //delete all categories 11 | await page 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 deleteAllCategories (/home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/posts/categories-tests.test.js:8:3) at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/posts/categories-tests.test.js:50:3
[chromium] › posts/categories-tests.test.js:54:2 › Category Tests › Should be able to create a new category: tests/e2e/specs/posts/categories-tests.test.js#L29
1) [chromium] › posts/categories-tests.test.js:54:2 › Category Tests › Should be able to create a new category Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Not logged in 27 | parent = null, 28 | } ) { > 29 | await admin.visitAdminPage( '/edit-tags.php?taxonomy=category' ); | ^ 30 | 31 | await page 32 | .getByRole( 'textbox', { name: 'Name' } ) 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 setupCategory (/home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/posts/categories-tests.test.js:29:3) at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/posts/categories-tests.test.js:51:3
[chromium] › posts/categories-tests.test.js:54:2 › Category Tests › Should be able to create a new category: tests/e2e/specs/posts/categories-tests.test.js#L8
1) [chromium] › posts/categories-tests.test.js:54:2 › Category Tests › Should be able to create a new category Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Not logged in 6 | test.describe( 'Category Tests', () => { 7 | async function deleteAllCategories( { page, admin } ) { > 8 | await admin.visitAdminPage( '/edit-tags.php?taxonomy=category' ); | ^ 9 | 10 | //delete all categories 11 | await page 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 deleteAllCategories (/home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/posts/categories-tests.test.js:8:3) at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/posts/categories-tests.test.js:50:3
Test with SCRIPT_DEBUG disabled / Run E2E tests
Process completed with exit code 1.
[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
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
1 failed [chromium] › posts/categories-tests.test.js:54:2 › Category Tests › Should be able to create a new category 35 passed (1.2m)
🎭 Playwright Run Summary
1 flaky [chromium] › install.test.js:34:6 › WordPress installation process › should install WordPress with pre-existing database credentials 35 passed (1.4m)

Artifacts

Produced during runtime
Name Size
failures-artifacts-12277884426
1.16 MB
failures-artifacts-SCRIPT_DEBUG-12277884426
364 KB