diff --git a/superset-frontend/cypress-base/cypress/integration/dashboard/filter.test.ts b/superset-frontend/cypress-base/cypress/integration/dashboard/filter.test.ts index 375f14dacd..9b30639c24 100644 --- a/superset-frontend/cypress-base/cypress/integration/dashboard/filter.test.ts +++ b/superset-frontend/cypress-base/cypress/integration/dashboard/filter.test.ts @@ -38,7 +38,7 @@ describe('Dashboard filter', () => { cy.get('.Select__placeholder:first').click(); // should show the filter indicator - cy.get('svg[data-test="filter"]:visible').should(nodes => { + cy.get('span[aria-label="filter"]:visible').should(nodes => { expect(nodes.length).to.least(9); }); @@ -50,7 +50,7 @@ describe('Dashboard filter', () => { cy.get('.Select__menu').first().contains('South Asia').click(); // should still have all filter indicators - cy.get('svg[data-test="filter"]:visible').should(nodes => { + cy.get('span[aria-label="filter"]:visible').should(nodes => { expect(nodes.length).to.least(9); }); diff --git a/superset-frontend/src/dashboard/components/FiltersBadge/DetailsPanel/index.tsx b/superset-frontend/src/dashboard/components/FiltersBadge/DetailsPanel/index.tsx index 7140817a34..6a311c3bcb 100644 --- a/superset-frontend/src/dashboard/components/FiltersBadge/DetailsPanel/index.tsx +++ b/superset-frontend/src/dashboard/components/FiltersBadge/DetailsPanel/index.tsx @@ -26,7 +26,7 @@ import { } from '@ant-design/icons'; import Popover from 'src/components/Popover'; import Collapse from 'src/components/Collapse'; -import Icon from 'src/components/Icon'; +import Icons from 'src/components/Icons'; import { Indent, Panel, @@ -169,9 +169,9 @@ const DetailsPanelPopover = ({ key="appliedCrossFilters" header={