Skip to content

Commit c6217da

Browse files
Fix Alerts SA tests (#1572)
* add ; to tests Signed-off-by: Riya Saxena <[email protected]> * fix channel tests in notifications Signed-off-by: Riya Saxena <[email protected]> * fix integ tests for SA alerts Signed-off-by: Riya Saxena <[email protected]> * fix integ tests for SA alerts Signed-off-by: Riya Saxena <[email protected]> * fix lint errors Signed-off-by: Riya Saxena <[email protected]> --------- Signed-off-by: Riya Saxena <[email protected]>
1 parent c9884bf commit c6217da

File tree

1 file changed

+8
-5
lines changed
  • cypress/integration/plugins/security-analytics-dashboards-plugin

1 file changed

+8
-5
lines changed

cypress/integration/plugins/security-analytics-dashboards-plugin/3_alerts.spec.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -398,11 +398,14 @@ describe('Alerts', () => {
398398
.should('have.length', 1);
399399

400400
// Filter the table to show only "Acknowledged" alerts
401-
cy.get('[data-text="Status"]').click({ force: true });
402-
cy.get('[class="euiFilterSelect__items"]').within(() => {
403-
cy.contains('Active').click({ force: true });
404-
cy.contains('Acknowledged').click({ force: true });
405-
});
401+
cy.wait(2000);
402+
cy.get('[data-text="Status"]').should('be.visible').click({ force: true });
403+
cy.get('[class="euiFilterSelect__items"]')
404+
.should('be.visible')
405+
.within(() => {
406+
cy.contains('Active').click({ force: true });
407+
cy.contains('Acknowledged').click({ force: true });
408+
});
406409

407410
// Wait for filter to apply
408411
cy.wait(2000);

0 commit comments

Comments
 (0)