Skip to content

Commit

Permalink
Fix Alerts SA tests (#1572) (#1573)
Browse files Browse the repository at this point in the history
* add ; to tests

Signed-off-by: Riya Saxena <riysaxen@amazon.com>

* fix channel tests in notifications

Signed-off-by: Riya Saxena <riysaxen@amazon.com>

* fix integ tests for SA alerts

Signed-off-by: Riya Saxena <riysaxen@amazon.com>

* fix integ tests for SA alerts

Signed-off-by: Riya Saxena <riysaxen@amazon.com>

* fix lint errors

Signed-off-by: Riya Saxena <riysaxen@amazon.com>

---------

Signed-off-by: Riya Saxena <riysaxen@amazon.com>
(cherry picked from commit c6217da)

Co-authored-by: Riya <69919272+riysaxen-amzn@users.noreply.github.com>
  • Loading branch information
1 parent edf2ce0 commit c0afee7
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c0afee7

Please sign in to comment.