From b1d1cf277935703a0e469c4138fbb2072cef93e2 Mon Sep 17 00:00:00 2001 From: Riya <69919272+riysaxen-amzn@users.noreply.github.com> Date: Fri, 13 Sep 2024 03:21:24 -0700 Subject: [PATCH] Fix Alerts SA tests (#1572) * add ; to tests Signed-off-by: Riya Saxena * fix channel tests in notifications Signed-off-by: Riya Saxena * fix integ tests for SA alerts Signed-off-by: Riya Saxena * fix integ tests for SA alerts Signed-off-by: Riya Saxena * fix lint errors Signed-off-by: Riya Saxena --------- Signed-off-by: Riya Saxena (cherry picked from commit c6217da1dfac0105e1f6d9721842fa9c9d55425d) --- .../3_alerts.spec.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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 2fe18e898..40e05d525 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,11 +396,14 @@ 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 }); - }); + cy.wait(2000); + cy.get('[data-text="Status"]').should('be.visible').click({ force: true }); + cy.get('[class="euiFilterSelect__items"]') + .should('be.visible') + .within(() => { + cy.contains('Active').click({ force: true }); + cy.contains('Acknowledged').click({ force: true }); + }); // Wait for filter to apply cy.wait(2000);