[wp-trac] [WordPress Trac] #48978: Add a new test case for E2E test (Show admin bar if user logged in)

WordPress Trac noreply at wordpress.org
Fri Jun 20 03:46:17 UTC 2025


#48978: Add a new test case for E2E test (Show admin bar if user logged in)
-------------------------------------------------+-------------------------
 Reporter:  hideokamoto                          |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Build/Test Tools                     |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests 2nd-        |     Focuses:  javascript
  opinion                                        |
-------------------------------------------------+-------------------------

Comment (by wildworks):

 I'm not familiar with E2E tests in the core, but it seems that only very
 basic tests exist currently.

 The overall situation of the project may have changed since this patch was
 submitted 5 years ago, so it might be a good idea to discuss what kind of
 E2E tests should be added to the core.

 Personally, I think it's fine to move forward with this patch. There are
 [https://github.com/t-hamano/wordpress-
 develop/blob/trunk/tests/phpunit/tests/adminbar.php already unit tests for
 the admin bar], but there are no tests that correspond to the logged-in
 state, and I think E2E tests are ideal for testing the display state on
 the front end.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48978#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list