Skip to content

Commit

Permalink
[Defend Workflows] Fix Osquery cypress flaky test (elastic#151472)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsonpl authored Feb 21, 2023
1 parent 406e6c0 commit c074504
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x-pack/plugins/osquery/cypress/e2e/all/alerts.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe('Alert Event Details', () => {
it('adds response actions with osquery with proper validation and form values', () => {
cy.visit('/app/security/rules');
cy.contains(RULE_NAME).click();
cy.contains('Edit rule settings').click();
cy.contains('Edit rule settings').click({ force: true });
cy.getBySel('edit-rule-actions-tab').wait(500).click();
cy.contains('Response actions are run on each rule execution');
cy.getBySel(OSQUERY_RESPONSE_ACTION_ADD_BUTTON).click();
Expand Down Expand Up @@ -114,7 +114,7 @@ describe('Alert Event Details', () => {
cy.contains('Save changes').click();
cy.contains(`${RULE_NAME} was saved`).should('exist');
cy.getBySel('toastCloseButton').click();
cy.contains('Edit rule settings').click();
cy.contains('Edit rule settings').click({ force: true });
cy.getBySel('edit-rule-actions-tab').wait(500).click();
cy.contains('select * from uptime');
cy.getBySel(RESPONSE_ACTIONS_ITEM_0).within(() => {
Expand Down Expand Up @@ -158,7 +158,7 @@ describe('Alert Event Details', () => {

cy.contains(`${RULE_NAME} was saved`).should('exist');
cy.getBySel('toastCloseButton').click();
cy.contains('Edit rule settings').click();
cy.contains('Edit rule settings').click({ force: true });
cy.getBySel('edit-rule-actions-tab').wait(500).click();
cy.getBySel(RESPONSE_ACTIONS_ITEM_0).within(() => {
cy.contains('testpack');
Expand Down Expand Up @@ -198,7 +198,7 @@ describe('Alert Event Details', () => {
'You have queries in the investigation guide. Add them as response actions?';
cy.visit('/app/security/rules');
cy.contains(RULE_NAME).click();
cy.contains('Edit rule settings').click();
cy.contains('Edit rule settings').click({ force: true });
cy.getBySel('edit-rule-actions-tab').wait(500).click();

cy.getBySel(RESPONSE_ACTIONS_ITEM_0).within(() => {
Expand Down

0 comments on commit c074504

Please sign in to comment.