diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/search_and_filter_bar.test.tsx b/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/search_and_filter_bar.test.tsx index 33fd16419a1bd..f3de9cf503cf1 100644 --- a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/search_and_filter_bar.test.tsx +++ b/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/search_and_filter_bar.test.tsx @@ -20,6 +20,8 @@ import { FleetStatusProvider, ConfigContext, KibanaVersionContext } from '../../ import { getMockTheme } from '../../../../../../mocks'; +import { ExperimentalFeaturesService } from '../../../../services'; + import { SearchAndFilterBar } from './search_and_filter_bar'; const mockTheme = getMockTheme({ @@ -49,6 +51,14 @@ const TestComponent = (props: any) => ( ); describe('SearchAndFilterBar', () => { + beforeAll(() => { + ExperimentalFeaturesService.init({ + createPackagePolicyMultiPageLayout: true, + packageVerification: true, + showDevtoolsRequest: false, + showRequestDiagnostics: false, + }); + }); it('should show no Actions button when no agent is selected', async () => { const selectedAgents: Agent[] = []; const props: any = {