1
0
mirror of https://github.com/Unleash/unleash.git synced 2026-02-04 20:10:52 +01:00

clean up test more

This commit is contained in:
Kamala Rocci 2026-01-22 10:45:38 +01:00
parent b61a749903
commit ecb6f4bc13

View File

@ -19,8 +19,8 @@ const setup = (
const recordedChanges: FilterItemParams[] = [];
const mockProps: IFilterDateItemProps = {
name: name ?? 'Date To',
label: label ?? 'Date To',
name: name ?? 'Test Label',
label: label ?? 'irrelevant',
onChange: (value: FilterItemParams) => {
recordedChanges.push(value);
},
@ -168,7 +168,7 @@ describe('FilterDateItem date range constraints', () => {
});
it('disables dates after today', async () => {
setup(null);
setup(null, undefined, 'Date To', 'Date To');
await userEvent.click(await screen.findByText('Date To'));