[wp-trac] [WordPress Trac] #63024: Address the errors that cause annotations in the e2e test workflows

WordPress Trac noreply at wordpress.org
Wed Feb 26 17:32:53 UTC 2025


#63024: Address the errors that cause annotations in the e2e test workflows
------------------------------+-----------------------------
 Reporter:  johnbillion       |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  needs-testing
  Focuses:                    |
------------------------------+-----------------------------
 The end to end tests workflow on GitHub Actions produces errors that are
 output as annotations on the workflow runs but don't cause them to fail.
 These should be investigated and fixed as necessary.

 Here's an example run: https://github.com/WordPress/wordpress-
 develop/actions/runs/13549269287

 {{{
 [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')
         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
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63024>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list