Posts, Post Types: Use relevant HTTP status codes for wp_die()
call…
#44505
end-to-end-tests.yml
on: push
Matrix: e2e-tests
Slack Notifications
/
Failure notifications
0s
Slack Notifications
/
Fixed notifications
0s
Slack Notifications
/
Success notifications
4s
Slack Notifications
/
Cancelled notifications
0s
Failed workflow tasks
0s
Annotations
5 errors and 2 notices
[chromium] › tests/e2e/specs/media-upload.test.js:11:5 › Test dismissing failed upload works correctly:
tests/e2e/specs/media-upload.test.js#L14
2) [chromium] › tests/e2e/specs/media-upload.test.js:11:5 › Test dismissing failed upload works correctly
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Not logged in
12 | // Log in before visiting admin page.
13 | await requestUtils.login();
> 14 | await admin.visitAdminPage( '/media-new.php' );
| ^
15 |
16 | // It takes a moment for the multi-file uploader to become available.
17 | await page.waitForLoadState('load');
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/media-upload.test.js:14:2
|
[chromium] › tests/e2e/specs/media-upload.test.js:11:5 › Test dismissing failed upload works correctly:
tests/e2e/specs/media-upload.test.js#L14
2) [chromium] › tests/e2e/specs/media-upload.test.js:11:5 › Test dismissing failed upload works correctly
Error: Not logged in
12 | // Log in before visiting admin page.
13 | await requestUtils.login();
> 14 | await admin.visitAdminPage( '/media-new.php' );
| ^
15 |
16 | // It takes a moment for the multi-file uploader to become available.
17 | await page.waitForLoadState('load');
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/media-upload.test.js:14:2
|
[chromium] › tests/e2e/specs/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] › tests/e2e/specs/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')
9 × 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] › tests/e2e/specs/media-upload.test.js:11:5 › Test dismissing failed upload works correctly:
tests/e2e/specs/media-upload.test.js#L14
2) [chromium] › tests/e2e/specs/media-upload.test.js:11:5 › Test dismissing failed upload works correctly
Error: Not logged in
12 | // Log in before visiting admin page.
13 | await requestUtils.login();
> 14 | await admin.visitAdminPage( '/media-new.php' );
| ^
15 |
16 | // It takes a moment for the multi-file uploader to become available.
17 | await page.waitForLoadState('load');
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/media-upload.test.js:14:2
|
[chromium] › tests/e2e/specs/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] › tests/e2e/specs/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')
9 × 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
|
🎭 Playwright Run Summary
2 flaky
[chromium] › tests/e2e/specs/install.test.js:34:6 › WordPress installation process › should install WordPress with pre-existing database credentials
[chromium] › tests/e2e/specs/media-upload.test.js:11:5 › Test dismissing failed upload works correctly
23 passed (46.6s)
|
🎭 Playwright Run Summary
2 flaky
[chromium] › tests/e2e/specs/install.test.js:34:6 › WordPress installation process › should install WordPress with pre-existing database credentials
[chromium] › tests/e2e/specs/media-upload.test.js:11:5 › Test dismissing failed upload works correctly
23 passed (41.5s)
|
Artifacts
Produced during runtime
Name | Size | Digest | |
---|---|---|---|
failures-artifacts-17511328430
|
614 KB |
sha256:f31a9c8afd1b76e6fa48019a2d9893fcc77d453501ad6d2545f0d33d4ae7f9cd
|
|
failures-artifacts-SCRIPT_DEBUG-17511328430
|
750 KB |
sha256:03b6ee73ae7c0c8e5a19578a811b6c64e07283b2732948184b290145ac7a27c4
|
|