From 4a89053243cc8d471965c63f8353ed1b28943a6b Mon Sep 17 00:00:00 2001 From: Amardeepsingh Siglani Date: Wed, 31 Jul 2024 19:55:58 -0700 Subject: [PATCH] updated detector and alerts tests (#1460) Signed-off-by: Amardeepsingh Siglani (cherry picked from commit db7aee2fc78ce9f886b5eb1690cdecae9530419e) --- .../security-analytics-dashboards-plugin/1_detectors.spec.js | 2 +- .../security-analytics-dashboards-plugin/3_alerts.spec.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cypress/integration/plugins/security-analytics-dashboards-plugin/1_detectors.spec.js b/cypress/integration/plugins/security-analytics-dashboards-plugin/1_detectors.spec.js index 2480490ac..f9f59e561 100644 --- a/cypress/integration/plugins/security-analytics-dashboards-plugin/1_detectors.spec.js +++ b/cypress/integration/plugins/security-analytics-dashboards-plugin/1_detectors.spec.js @@ -40,7 +40,7 @@ const validateAlertPanel = (alertName) => .eq(2) .within(() => cy.sa_getElementByText('button', alertName)); -const dataSourceLabel = 'Select or input source indexes or index patterns'; +const dataSourceLabel = 'Select indexes/aliases'; const getDataSourceField = () => cy.sa_getFieldByLabel(dataSourceLabel); diff --git a/cypress/integration/plugins/security-analytics-dashboards-plugin/3_alerts.spec.js b/cypress/integration/plugins/security-analytics-dashboards-plugin/3_alerts.spec.js index 57efafc86..2fe18e898 100644 --- a/cypress/integration/plugins/security-analytics-dashboards-plugin/3_alerts.spec.js +++ b/cypress/integration/plugins/security-analytics-dashboards-plugin/3_alerts.spec.js @@ -396,6 +396,7 @@ describe('Alerts', () => { .should('have.length', 1); // Filter the table to show only "Acknowledged" alerts + cy.get('[data-text="Status"]').click({ force: true }); cy.get('[class="euiFilterSelect__items"]').within(() => { cy.contains('Active').click({ force: true }); cy.contains('Acknowledged').click({ force: true });