diff --git a/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.test.tsx b/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.test.tsx index 66ba06cb4f..c2b8bb8f9f 100644 --- a/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.test.tsx +++ b/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.test.tsx @@ -76,14 +76,14 @@ const setupApi = (features: APIFeature[], projects: APIProject[]) => { const verifyTableFeature = async (feature: Partial) => { await screen.findByText('Search'); - await screen.findByText('Add Filter'); + await screen.findByText('Filter'); await Promise.all( Object.values(feature).map((value) => screen.findByText(value)), ); }; const filterFeaturesByProject = async (projectName: string) => { - const addFilterButton = screen.getByText('Add Filter'); + const addFilterButton = screen.getByText('Filter'); addFilterButton.click(); const projectItem = await screen.findByText('Project'); diff --git a/frontend/src/component/filter/AddFilterButton.tsx b/frontend/src/component/filter/AddFilterButton.tsx index 7ab29e7f2b..5cc788fa33 100644 --- a/frontend/src/component/filter/AddFilterButton.tsx +++ b/frontend/src/component/filter/AddFilterButton.tsx @@ -4,7 +4,7 @@ import Button from '@mui/material/Button'; import Menu from '@mui/material/Menu'; import MenuItem from '@mui/material/MenuItem'; import { Icon, styled } from '@mui/material'; -import Add from '@mui/icons-material/Add'; +import FilterList from '@mui/icons-material/FilterList'; import { Box } from '@mui/system'; import type { IFilterItem } from './Filters/Filters'; import { FILTERS_MENU } from 'utils/testIds'; @@ -117,13 +117,16 @@ export const AddFilterButton = ({ describeChild open={archiveTooltipOpen} > - }> - Add Filter + } + > + Filter ) : ( - }> - Add Filter + }> + Filter )} diff --git a/frontend/src/component/filter/Filters/Filters.test.tsx b/frontend/src/component/filter/Filters/Filters.test.tsx index 54277cd7bf..45b3626760 100644 --- a/frontend/src/component/filter/Filters/Filters.test.tsx +++ b/frontend/src/component/filter/Filters/Filters.test.tsx @@ -120,7 +120,7 @@ test('should remove selected item from the add filter list', async () => { ); // initial selection list - const addFilterButton = await screen.findByText('Add Filter'); + const addFilterButton = await screen.findByText('Filter'); fireEvent.click(addFilterButton); expect((await screen.findByTestId(FILTERS_MENU)).textContent).toBe( 'StateTags', diff --git a/frontend/src/component/insights/Insights.test.tsx b/frontend/src/component/insights/Insights.test.tsx index 268392e6ab..a9ca7d83ef 100644 --- a/frontend/src/component/insights/Insights.test.tsx +++ b/frontend/src/component/insights/Insights.test.tsx @@ -31,7 +31,7 @@ test('Filter insights by project and date', async () => { vi.setSystemTime(currentTime); setupApi(); render(); - const addFilter = await screen.findByText('Add Filter'); + const addFilter = await screen.findByText('Filter'); fireEvent.click(addFilter); const projectFilter = await screen.findByText('Project'); diff --git a/frontend/src/component/project/Project/PaginatedProjectFeatureToggles/ProjectFeatureToggles.test.tsx b/frontend/src/component/project/Project/PaginatedProjectFeatureToggles/ProjectFeatureToggles.test.tsx index 9575cb28fd..1307be9e78 100644 --- a/frontend/src/component/project/Project/PaginatedProjectFeatureToggles/ProjectFeatureToggles.test.tsx +++ b/frontend/src/component/project/Project/PaginatedProjectFeatureToggles/ProjectFeatureToggles.test.tsx @@ -150,7 +150,7 @@ test('filters by flag author', async () => { route: '/projects/default', }, ); - const addFilter = await screen.findByText('Add Filter'); + const addFilter = await screen.findByText('Filter'); fireEvent.click(addFilter); const createdBy = await screen.findByText('Created by');