test(dashboard): fix filter-delete queries broken by aria-label rename#41781
test(dashboard): fix filter-delete queries broken by aria-label rename#41781rusackas wants to merge 1 commit into
Conversation
#41742 changed the filter delete icon's accessible name from the alt text "delete" to aria-label "Remove filter" but did not update the two FiltersConfigModal tests querying the button by name, so sharded jest shard 5 fails on every PR. Update the role queries to the new name. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Code Review Agent Run #ddc012Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@sadpandajoe mind a quick look? Two-line test fix, but it unblocks |
|
As it turns out, #41774 landed the same fix this morning (via |
SUMMARY
#41742 (merged 2026-07-03) fixed the filter icons to use a real
aria-labelinstead of the non-functionalaltprop, which changed the delete icon's accessible name fromdeleteto "Remove filter" — but didn't update the twoFiltersConfigModaltests that query the button by its accessible name. Since then,sharded-jest-tests (5)fails deterministically on any PR whose CI runs it (observed on #41780 and others):Two-line fix: update the
getByRole('button', { name: ... })queries inrestores a deleted filter via the "Restore filter" buttonandundoes a filter deletion via the sidebar "Undo?" linkto/remove filter/i.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A — test-only.
TESTING INSTRUCTIONS
26 passed, 1 skipped (pre-existing skip) locally.
ADDITIONAL INFORMATION
🤖 Generated with Claude Code