From f806fa2eda0da2ab219175b858bf0f00f9810082 Mon Sep 17 00:00:00 2001 From: Gloria Hornero Date: Thu, 26 Aug 2021 16:30:58 +0200 Subject: [PATCH] fixes opening alerts test (#110198) --- x-pack/plugins/security_solution/cypress/tasks/alerts.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/security_solution/cypress/tasks/alerts.ts b/x-pack/plugins/security_solution/cypress/tasks/alerts.ts index abc3eed4e141..1520a88ec31b 100644 --- a/x-pack/plugins/security_solution/cypress/tasks/alerts.ts +++ b/x-pack/plugins/security_solution/cypress/tasks/alerts.ts @@ -25,7 +25,7 @@ import { TIMELINE_CONTEXT_MENU_BTN, SELECT_EVENT_CHECKBOX, } from '../screens/alerts'; -import { REFRESH_BUTTON } from '../screens/security_header'; +import { LOADING_INDICATOR, REFRESH_BUTTON } from '../screens/security_header'; import { TIMELINE_COLUMN_SPINNER } from '../screens/timeline'; import { UPDATE_ENRICHMENT_RANGE_BUTTON, @@ -99,7 +99,8 @@ export const goToOpenedAlerts = () => { cy.get(OPENED_ALERTS_FILTER_BTN).click({ force: true }); cy.get(REFRESH_BUTTON).should('not.have.text', 'Updating'); cy.get(REFRESH_BUTTON).should('have.text', 'Refresh'); - cy.get(TIMELINE_COLUMN_SPINNER).should('not.exist'); + cy.get(LOADING_INDICATOR).should('exist'); + cy.get(LOADING_INDICATOR).should('not.exist'); }; export const openFirstAlert = () => {