diff --git a/UNRELEASED.md b/UNRELEASED.md index d52eb064574..7410ce70a90 100644 --- a/UNRELEASED.md +++ b/UNRELEASED.md @@ -75,7 +75,7 @@ Use [the changelog guidelines](https://git.io/polaris-changelog-guidelines) to f - Modernized tests for Pane, Section, PositionedOverlay, SingleThumb, RangeSlider, and ConnectedFilter components ([#4429](https://github.com/Shopify/polaris-react/pull/4429)) - Modernized tests for ContextualSaveBar and DataTable and its subcomponents ([#4397](https://github.com/Shopify/polaris-react/pull/4397)) - Modernized tests for IndexTable, Indicator, InlineError, KeyboardKey, and KeypressListener components([#4431](https://github.com/Shopify/polaris-react/pull/4431)) -- Modernized tests for Form and Filters components ([#4434](https://github.com/Shopify/polaris-react/pull/4434)). +- Modernized tests for Form and Filters components ([#4434](https://github.com/Shopify/polaris-react/pull/4434) and [#4458](https://github.com/Shopify/polaris-react/pull/4458)) - Modernized tests for OptionList and its subcomponents ([#4441](https://github.com/Shopify/polaris-react/pull/4441)) - Modernized tests for Modal ([#4433](https://github.com/Shopify/polaris-react/pull/4433)) - Modernized tests for Navigation and Navigation.Section ([#4440](https://github.com/Shopify/polaris-react/pull/4440)) diff --git a/src/components/Filters/tests/Filters.test.tsx b/src/components/Filters/tests/Filters.test.tsx index 4c1a6b53fbe..38eb3096baa 100644 --- a/src/components/Filters/tests/Filters.test.tsx +++ b/src/components/Filters/tests/Filters.test.tsx @@ -9,12 +9,6 @@ import { TextStyle, ButtonProps, } from 'components'; -// eslint-disable-next-line no-restricted-imports -import { - findByTestID, - mountWithAppProvider, - trigger, -} from 'test-utilities/legacy'; import {mountWithApp} from 'test-utilities'; import {WithinFilterContext} from '../../../utilities/within-filter-context'; @@ -22,6 +16,7 @@ import {Filters, FiltersProps} from '../Filters'; import {ConnectedFilterControl, TagsWrapper} from '../components'; import {Collapsible} from '../../Collapsible'; import * as focusUtils from '../../../utilities/focus'; +import styles from '../Filters.scss'; const MockFilter = (props: {id: string}) =>
; const MockChild = () => ; @@ -346,20 +341,21 @@ describe('