[EDR Workflows] Fix failing test regarding flyout issue in alerts (#172043)

This commit is contained in:
Tomasz Ciecierski 2023-11-29 10:25:34 +01:00 committed by GitHub
parent f20e8357e3
commit f085621576
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,10 +65,12 @@ describe('Alert Event Details - Cases', { tags: ['@ess', '@serverless'] }, () =>
it('runs osquery against alert and creates a new case', () => {
const [caseName, caseDescription] = generateRandomStringName(2);
cy.getBySel('expand-event').first().click({ force: true });
cy.getBySel('expand-event').first().click();
cy.getBySel('take-action-dropdown-btn').click();
cy.getBySel('osquery-action-item').click();
cy.contains(/^\d+ agen(t|ts) selected/);
cy.getBySel('globalLoadingIndicator').should('not.exist');
cy.wait(1000);
cy.contains('Run a set of queries in a pack').click();
cy.get(OSQUERY_FLYOUT_BODY_EDITOR).should('not.exist');
cy.getBySel('globalLoadingIndicator').should('not.exist');