Skip to content

Commit

Permalink
fix integ tests
Browse files Browse the repository at this point in the history
Signed-off-by: Riya Saxena <[email protected]>
  • Loading branch information
riysaxen-amzn committed Jun 25, 2024
1 parent 5110f10 commit 501bfaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cypress/integration/3_alerts.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('Alerts', () => {
cy.get('[data-test-subj="superDatePickerApplyTimeButton"]').click({ force: true });

// Confirm there are alerts created
cy.get('tbody > tr').filter(`:contains(${alertName})`).should('have.length', docCount);
cy.get('tbody > tr', { timeout: 60000 }).filter(`:contains(${alertName})`).should('have.length', docCount);
});

it('contain expected values in table', () => {
Expand Down Expand Up @@ -318,7 +318,7 @@ describe('Alerts', () => {
cy.get('[aria-label="Acknowledge"]').click({ force: true });
});

cy.get('tbody > tr').filter(`:contains(${alertName})`).should('have.length', 2);
cy.get('tbody > tr').filter(`:contains(${alertName})`).should('have.length', 3);

// Filter the table to show only "Acknowledged" alerts
cy.get('[data-text="Status"]');
Expand All @@ -328,7 +328,7 @@ describe('Alerts', () => {
});

// Confirm there are now 3 "Acknowledged" alerts
cy.get('tbody > tr').filter(`:contains(${alertName})`).should('have.length', 2);
cy.get('tbody > tr').filter(`:contains(${alertName})`).should('have.length', 3);
});

it('can be acknowledged via flyout button', () => {
Expand Down

0 comments on commit 501bfaa

Please sign in to comment.