Skip to content

Commit

Permalink
[Security Solution] Unskipping `x-pack/test/security_solution_cypress…
Browse files Browse the repository at this point in the history
…/cypress/e2e/investigations/dasbhoards/` working tests on serverless (elastic#167863)

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
MadameSheema and kibanamachine authored Oct 9, 2023
1 parent b471be9 commit 2732fa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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`, () => {
Expand All @@ -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`, () => {
Expand All @@ -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`, () => {
Expand All @@ -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();
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export const clearSearchBar = () => {
};

export const kqlSearch = (search: string) => {
clearSearchBar();
cy.get(KQL_INPUT).type(search);
};

Expand Down

0 comments on commit 2732fa1

Please sign in to comment.