diff --git a/x-pack/test/security_solution_cypress/cypress/e2e/investigations/dasbhoards/detection_response.cy.ts b/x-pack/test/security_solution_cypress/cypress/e2e/investigations/dasbhoards/detection_response.cy.ts index 96ef0fbf59bb0..0192d85bd6f23 100644 --- a/x-pack/test/security_solution_cypress/cypress/e2e/investigations/dasbhoards/detection_response.cy.ts +++ b/x-pack/test/security_solution_cypress/cypress/e2e/investigations/dasbhoards/detection_response.cy.ts @@ -36,14 +36,14 @@ import { investigateDashboardItemInTimeline } from '../../../tasks/dashboards/co import { waitToNavigateAwayFrom } from '../../../tasks/kibana_navigation'; import { login } from '../../../tasks/login'; import { visit } from '../../../tasks/navigation'; -import { clearSearchBar, kqlSearch } from '../../../tasks/security_header'; +import { kqlSearch } from '../../../tasks/security_header'; import { createNewTimeline } from '../../../tasks/timeline'; import { ALERTS_URL, DASHBOARDS_URL, DETECTION_AND_RESPONSE_URL } from '../../../urls/navigation'; const TEST_USER_NAME = 'test'; const SIEM_KIBANA_HOST_NAME = 'siem-kibana'; -describe('Detection response view', { tags: ['@ess', '@brokenInServerless'] }, () => { +describe('Detection response view', { tags: ['@ess', '@serverless'] }, () => { before(() => { cleanKibana(); createRule(getNewRule()); @@ -61,8 +61,6 @@ describe('Detection response view', { tags: ['@ess', '@brokenInServerless'] }, ( cy.get(HOST_TABLE_ROW_TOTAL_ALERTS).should('have.length', 0); cy.get(RULE_TABLE_ROW_TOTAL_ALERTS).should('have.length', 0); cy.get(ALERTS_DONUT_CHART).first().should('have.text', 'Open'); - - clearSearchBar(); }); it(`finds the host when filtering with KQL search bar query`, () => { @@ -71,8 +69,6 @@ describe('Detection response view', { tags: ['@ess', '@brokenInServerless'] }, ( cy.get(HOST_TABLE_ROW_TOTAL_ALERTS).should('have.length', 1); cy.get(RULE_TABLE_ROW_TOTAL_ALERTS).should('have.text', 2); cy.get(ALERTS_DONUT_CHART).first().should('include.text', '2Open'); - - clearSearchBar(); }); it(`filters out the users with KQL search bar query`, () => { @@ -81,8 +77,6 @@ describe('Detection response view', { tags: ['@ess', '@brokenInServerless'] }, ( cy.get(USER_TABLE_ROW_TOTAL_ALERTS).should('have.length', 0); cy.get(RULE_TABLE_ROW_TOTAL_ALERTS).should('have.length', 0); cy.get(ALERTS_DONUT_CHART).first().should('have.text', 'Open'); - - clearSearchBar(); }); it(`finds the user when filtering with KQL search bar query`, () => { @@ -91,8 +85,6 @@ describe('Detection response view', { tags: ['@ess', '@brokenInServerless'] }, ( cy.get(USER_TABLE_ROW_TOTAL_ALERTS).should('have.length', 1); cy.get(RULE_TABLE_ROW_TOTAL_ALERTS).should('have.text', 2); cy.get(ALERTS_DONUT_CHART).first().should('include.text', '2Open'); - - clearSearchBar(); }); }); diff --git a/x-pack/test/security_solution_cypress/cypress/tasks/security_header.ts b/x-pack/test/security_solution_cypress/cypress/tasks/security_header.ts index 6a0d660af198d..8824d41536a8e 100644 --- a/x-pack/test/security_solution_cypress/cypress/tasks/security_header.ts +++ b/x-pack/test/security_solution_cypress/cypress/tasks/security_header.ts @@ -14,7 +14,6 @@ export const clearSearchBar = () => { }; export const kqlSearch = (search: string) => { - clearSearchBar(); cy.get(KQL_INPUT).type(search); };