Skip to content

Commit

Permalink
[EDR Workflows] Fix alert_test.cy.ts flakiness (elastic#198516)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsonpl authored and nreese committed Nov 1, 2024
1 parent 1da15ef commit 113660f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x-pack/plugins/osquery/cypress/e2e/roles/alert_test.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* 2.0.
*/

import { waitForAlertsToPopulate } from '@kbn/test-suites-xpack/security_solution_cypress/cypress/tasks/create_new_rule';
import { disableNewFeaturesTours } from '../../tasks/navigation';
import { initializeDataViews } from '../../tasks/login';
import { checkResults, clickRuleName, submitQuery } from '../../tasks/live_query';
Expand All @@ -31,9 +32,8 @@ describe('Alert Test', { tags: ['@ess'] }, () => {
onBeforeLoad: (win) => disableNewFeaturesTours(win),
});
clickRuleName(ruleName);
cy.getBySel('expand-event').first().click({ force: true });

cy.wait(500);
waitForAlertsToPopulate();
cy.getBySel('expand-event').first().click();
cy.getBySel('securitySolutionFlyoutInvestigationGuideButton').click();
cy.contains('Get processes').click();
});
Expand Down

0 comments on commit 113660f

Please sign in to comment.