Skip to content

Commit

Permalink
[Security Solution] Skip flaky test (elastic#174990)
Browse files Browse the repository at this point in the history
## Summary

Skip flaky tests that were unskipped because they are still failing.

Failures:       
elastic#174860
elastic#174859
  • Loading branch information
machadoum authored and CoenWarmer committed Feb 15, 2024
1 parent d8e033a commit e5801a6
Showing 1 changed file with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import { hostsUrl } from '../../../urls/navigation';
import { kqlSearch } from '../../../tasks/security_header';
import { mockRiskEngineEnabled } from '../../../tasks/entity_analytics';

// Tracked by https://github.com/elastic/security-team/issues/7696
describe('risk tab', { tags: ['@ess', '@serverless'] }, () => {
describe('with legacy risk score', () => {
before(() => {
Expand All @@ -35,6 +34,11 @@ describe('risk tab', { tags: ['@ess', '@serverless'] }, () => {
// by some reason after navigate to host risk, page is sometimes is reload or go to all host tab
// this fix wait until we fave host in all host table, and then we go to risk tab
cy.contains('siem-kibana');

// Sometimes it doesn't navigate to the risk tab an causes flakiness
// Curiously the "renders the table" test doesn't fail
// https://github.com/elastic/kibana/issues/174860
// https://github.com/elastic/kibana/issues/174859
navigateToHostRiskDetailTab();
});

Expand All @@ -50,15 +54,17 @@ describe('risk tab', { tags: ['@ess', '@serverless'] }, () => {
cy.get(HOST_BY_RISK_TABLE_CELL).eq(7).should('have.text', 'Low');
});

it('filters the table', () => {
// Flaky
it.skip('filters the table', () => {
openRiskTableFilterAndSelectTheCriticalOption();

cy.get(HOST_BY_RISK_TABLE_CELL).eq(3).should('not.have.text', 'siem-kibana');

removeCriticalFilterAndCloseRiskTableFilter();
});

it('should be able to change items count per page', () => {
// Flaky
it.skip('should be able to change items count per page', () => {
selectFiveItemsPerPageOption();

cy.get(HOST_BY_RISK_TABLE_HOSTNAME_CELL).should('have.length', 5);
Expand Down Expand Up @@ -97,7 +103,8 @@ describe('risk tab', { tags: ['@ess', '@serverless'] }, () => {
cy.get(HOST_BY_RISK_TABLE_CELL).eq(7).should('have.text', 'Critical');
});

it('filters the table', () => {
// Flaky
it.skip('filters the table', () => {
openRiskTableFilterAndSelectTheCriticalOption();

cy.get(HOST_BY_RISK_TABLE_CELL).eq(3).should('not.have.text', 'siem-kibana');
Expand All @@ -106,7 +113,7 @@ describe('risk tab', { tags: ['@ess', '@serverless'] }, () => {
});

// Flaky
it('should be able to change items count per page', () => {
it.skip('should be able to change items count per page', () => {
selectFiveItemsPerPageOption();

cy.get(HOST_BY_RISK_TABLE_HOSTNAME_CELL).should('have.length', 5);
Expand Down

0 comments on commit e5801a6

Please sign in to comment.