1
0
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:
Tymoteusz Czech 2025-09-11 12:18:50 +02:00
parent c9e99fca1e
commit 92db5a02c3
No known key found for this signature in database
GPG Key ID: 133555230D88D75F

View File

@ -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 });
}); });
}); });