mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Security Solution] Unskipping x-pack/test/security_solution_cypress/cypress/e2e/explore/hosts/
working tests on serverless (#168398)
This commit is contained in:
parent
6caf0327ad
commit
b6f62f6822
4 changed files with 5 additions and 9 deletions
|
@ -46,7 +46,7 @@ const defaultHeadersInDefaultEcsCategory = [
|
|||
{ id: 'destination.ip' },
|
||||
];
|
||||
|
||||
describe('Events Viewer', { tags: ['@ess', '@brokenInServerless'] }, () => {
|
||||
describe('Events Viewer', { tags: ['@ess', '@serverless'] }, () => {
|
||||
before(() => {
|
||||
cy.task('esArchiverLoad', { archiveName: 'auditbeat_big' });
|
||||
});
|
||||
|
|
|
@ -20,12 +20,12 @@ import {
|
|||
import { login } from '../../../tasks/login';
|
||||
import { visitWithTimeRange } from '../../../tasks/navigation';
|
||||
import { hostsUrl } from '../../../urls/navigation';
|
||||
import { clearSearchBar, kqlSearch } from '../../../tasks/security_header';
|
||||
import { kqlSearch } from '../../../tasks/security_header';
|
||||
import { deleteRiskEngineConfiguration } from '../../../tasks/api_calls/risk_engine';
|
||||
import { enableRiskEngine } from '../../../tasks/entity_analytics';
|
||||
|
||||
// Tracked by https://github.com/elastic/security-team/issues/7696
|
||||
describe('risk tab', { tags: ['@ess', '@brokenInServerless'] }, () => {
|
||||
describe('risk tab', { tags: ['@ess', '@serverless'] }, () => {
|
||||
describe('with legacy risk score', () => {
|
||||
before(() => {
|
||||
cleanKibana();
|
||||
|
@ -52,7 +52,6 @@ describe('risk tab', { tags: ['@ess', '@brokenInServerless'] }, () => {
|
|||
cy.get(HOST_BY_RISK_TABLE_CELL).eq(3).should('have.text', 'siem-kibana');
|
||||
cy.get(HOST_BY_RISK_TABLE_CELL).eq(4).should('have.text', '21');
|
||||
cy.get(HOST_BY_RISK_TABLE_CELL).eq(5).should('have.text', 'Low');
|
||||
clearSearchBar();
|
||||
});
|
||||
|
||||
it.skip('filters the table', () => {
|
||||
|
@ -73,7 +72,6 @@ describe('risk tab', { tags: ['@ess', '@brokenInServerless'] }, () => {
|
|||
it('should not allow page change when page is empty', () => {
|
||||
kqlSearch('host.name: "nonexistent_host" {enter}');
|
||||
cy.get(HOST_BY_RISK_TABLE_NEXT_PAGE_BUTTON).should(`not.exist`);
|
||||
clearSearchBar();
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -104,7 +102,6 @@ describe('risk tab', { tags: ['@ess', '@brokenInServerless'] }, () => {
|
|||
cy.get(HOST_BY_RISK_TABLE_CELL).eq(3).should('have.text', 'siem-kibana');
|
||||
cy.get(HOST_BY_RISK_TABLE_CELL).eq(4).should('have.text', '90');
|
||||
cy.get(HOST_BY_RISK_TABLE_CELL).eq(5).should('have.text', 'Critical');
|
||||
clearSearchBar();
|
||||
});
|
||||
|
||||
it.skip('filters the table', () => {
|
||||
|
@ -125,7 +122,6 @@ describe('risk tab', { tags: ['@ess', '@brokenInServerless'] }, () => {
|
|||
it('should not allow page change when page is empty', () => {
|
||||
kqlSearch('host.name: "nonexistent_host" {enter}');
|
||||
cy.get(HOST_BY_RISK_TABLE_NEXT_PAGE_BUTTON).should(`not.exist`);
|
||||
clearSearchBar();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -15,7 +15,7 @@ import { kqlSearch } from '../../../tasks/security_header';
|
|||
import { deleteRiskEngineConfiguration } from '../../../tasks/api_calls/risk_engine';
|
||||
import { enableRiskEngine } from '../../../tasks/entity_analytics';
|
||||
|
||||
describe('All hosts table', { tags: ['@ess', '@serverless', '@brokenInServerless'] }, () => {
|
||||
describe('All hosts table', { tags: ['@ess', '@serverless'] }, () => {
|
||||
describe('with legacy risk score', () => {
|
||||
before(() => {
|
||||
cleanKibana();
|
||||
|
|
|
@ -14,7 +14,7 @@ export const clearSearchBar = () => {
|
|||
};
|
||||
|
||||
export const kqlSearch = (search: string) => {
|
||||
cy.get(KQL_INPUT).type(search);
|
||||
cy.get(KQL_INPUT).type(search, { force: true });
|
||||
};
|
||||
|
||||
export const navigateFromHeaderTo = (page: string) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue