Skip to content

Commit

Permalink
[Security Solutions] Fix flaky entity analytics dashboard risk filter…
Browse files Browse the repository at this point in the history
… cypress tests (elastic#174838)

Implement the same solution proposal by Jared here
elastic#173970

## Summary

flaky tests:
elastic#174260
elastic#174102

flaky test runner (300 runs)
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4864

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
  • Loading branch information
machadoum authored Jan 16, 2024
1 parent fffbf0e commit 2a2a46e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,10 @@ describe('Entity Analytics Dashboard', { tags: ['@ess', '@serverless'] }, () =>
});

it('filters by risk level', () => {
cy.get(HOSTS_TABLE).should('be.visible');
cy.get(HOSTS_TABLE_ROWS).should('have.length', 5);
cy.get(HOSTS_DONUT_CHART).should('include.text', '6Total');

openRiskTableFilterAndSelectTheCriticalOption();

cy.get(HOSTS_DONUT_CHART).should('include.text', '1Total');
Expand Down Expand Up @@ -461,6 +464,8 @@ describe('Entity Analytics Dashboard', { tags: ['@ess', '@serverless'] }, () =>

it('filters by risk level', () => {
cy.get(USERS_DONUT_CHART).should('include.text', '7Total');
cy.get(USERS_TABLE).should('be.visible');
cy.get(USERS_TABLE_ROWS).should('have.length', 5);

openUserRiskTableFilterAndSelectTheLowOption(1);

Expand Down

0 comments on commit 2a2a46e

Please sign in to comment.