Opened 3 years ago
Closed 7 months ago
#55042 closed enhancement (duplicate)
Add end to end test case for Filter media by Date
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch has-unit-tests needs-refresh |
Focuses: | Cc: |
Description
Add two new test cases in wp-e2e for Filter media by date
This ticket is to add an E2E test for this feature
Change History (2)
This ticket was mentioned in PR #2262 on WordPress/wordpress-develop by ank1traj.
3 years ago
#1
- Keywords has-patch has-unit-tests added
#2
@
7 months ago
- Keywords needs-refresh added
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
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.
Trac ticket - https://core.trac.wordpress.org/ticket/55042#ticket