From 92db5a02c3395df3ee626efb4ac9d62e3275cbe1 Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Thu, 11 Sep 2025 12:18:50 +0200 Subject: [PATCH] test: update LifecycleFilters test to remove count from 'All flags' label --- .../FeatureToggleFilters/LifecycleFilters.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/component/feature/FeatureToggleList/FeatureToggleFilters/LifecycleFilters.test.tsx b/frontend/src/component/feature/FeatureToggleList/FeatureToggleFilters/LifecycleFilters.test.tsx index 2dded0acfa..7acd519b14 100644 --- a/frontend/src/component/feature/FeatureToggleList/FeatureToggleFilters/LifecycleFilters.test.tsx +++ b/frontend/src/component/feature/FeatureToggleList/FeatureToggleFilters/LifecycleFilters.test.tsx @@ -47,7 +47,7 @@ describe('LifecycleFilters', () => { , ); - expect(getByText('All flags (10)')).toBeInTheDocument(); + expect(getByText('All flags')).toBeInTheDocument(); expect(getByText('Develop (2)')).toBeInTheDocument(); expect(getByText('Rollout production (3)')).toBeInTheDocument(); expect(getByText('Cleanup (4)')).toBeInTheDocument(); @@ -98,7 +98,7 @@ describe('LifecycleFilters', () => { lifecycle: { operator: 'IS', values: ['completed'] }, }); - await userEvent.click(getByText('All flags (10)')); + await userEvent.click(getByText('All flags')); expect(onChange).toHaveBeenCalledWith({ lifecycle: null }); }); });