diff --git a/x-pack/test/security_solution_cypress/cypress/tasks/alerts.ts b/x-pack/test/security_solution_cypress/cypress/tasks/alerts.ts index de6b4b95deea7..fee36ce79faff 100644 --- a/x-pack/test/security_solution_cypress/cypress/tasks/alerts.ts +++ b/x-pack/test/security_solution_cypress/cypress/tasks/alerts.ts @@ -122,7 +122,7 @@ export const closeAlerts = () => { cy.get(TAKE_ACTION_POPOVER_BTN).first().click(); cy.get(TAKE_ACTION_POPOVER_BTN).should('be.visible'); cy.get(CLOSE_SELECTED_ALERTS_BTN).click(); - cy.get(CLOSE_SELECTED_ALERTS_BTN).should('not.be.visible'); + cy.get(CLOSE_SELECTED_ALERTS_BTN).should('not.exist'); }; export const expandFirstAlertActions = () => {