mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-24 17:51:14 +02:00
test: update LifecycleFilters test to remove count from 'All flags' label
This commit is contained in:
parent
c9e99fca1e
commit
92db5a02c3
@ -47,7 +47,7 @@ describe('LifecycleFilters', () => {
|
|||||||
<FeatureLifecycleFilters state={{}} onChange={vi.fn()} />,
|
<FeatureLifecycleFilters state={{}} onChange={vi.fn()} />,
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(getByText('All flags (10)')).toBeInTheDocument();
|
expect(getByText('All flags')).toBeInTheDocument();
|
||||||
expect(getByText('Develop (2)')).toBeInTheDocument();
|
expect(getByText('Develop (2)')).toBeInTheDocument();
|
||||||
expect(getByText('Rollout production (3)')).toBeInTheDocument();
|
expect(getByText('Rollout production (3)')).toBeInTheDocument();
|
||||||
expect(getByText('Cleanup (4)')).toBeInTheDocument();
|
expect(getByText('Cleanup (4)')).toBeInTheDocument();
|
||||||
@ -98,7 +98,7 @@ describe('LifecycleFilters', () => {
|
|||||||
lifecycle: { operator: 'IS', values: ['completed'] },
|
lifecycle: { operator: 'IS', values: ['completed'] },
|
||||||
});
|
});
|
||||||
|
|
||||||
await userEvent.click(getByText('All flags (10)'));
|
await userEvent.click(getByText('All flags'));
|
||||||
expect(onChange).toHaveBeenCalledWith({ lifecycle: null });
|
expect(onChange).toHaveBeenCalledWith({ lifecycle: null });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user