From 8768b9d9c61fdeafe009de53375cab7f64203073 Mon Sep 17 00:00:00 2001 From: Kevin Qualters <56408403+kqualters-elastic@users.noreply.github.com> Date: Fri, 29 Sep 2023 03:10:24 -0400 Subject: [PATCH] [Security Solution] [Alerts] Fix close alerts test looking for rendered but hidden element instead of non existant (#167594) --- x-pack/test/security_solution_cypress/cypress/tasks/alerts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = () => {