[wp-trac] [WordPress Trac] #55042: Add end to end test case for Filter media by Date

WordPress Trac noreply at wordpress.org
Fri Aug 16 08:31:45 UTC 2024


#55042: Add end to end test case for Filter media by Date
-------------------------------------------------+-------------------------
 Reporter:  honesthacker                         |       Owner:  (none)
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:
Component:  Build/Test Tools                     |     Version:
 Severity:  normal                               |  Resolution:  duplicate
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:
  refresh                                        |
-------------------------------------------------+-------------------------
Changes (by swissspidy):

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests needs-
     refresh
 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 The patch needs a refresh as we migrated to Playwright.

 More importantly, it does not test anything useful right now. There are
 zero assertions.

 There are no media items by default, so changing the filter won't do
 anything.

 You would need to actually add some media items with different dates and
 verify that only the media items with that date are shown.

 But there are more useful flows in the media library to test anyways.

 I recommend consolidating this with #52895 to look at this more
 holistically and clearly define the flows that require e2e tests.

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


More information about the wp-trac mailing list