Skip to content

Commit

Permalink
Update e2e tests to use the correct healths
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 committed Oct 10, 2023
1 parent 2a6f6b8 commit 2856d33
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/e2e/cypress/e2e/hosts_overview.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,14 @@ context('Hosts Overview', () => {
it('should show health status of the entire cluster of 27 hosts with partial pagination', () => {
cy.get('.tn-health-container .tn-health-passing', {
timeout: 15000,
}).should('contain', 27);
cy.get('.tn-health-container .tn-health-warning').should('contain', 0);
}).should('contain', 9);
cy.get('.tn-health-container .tn-health-warning').should('contain', 18);
cy.get('.tn-health-container .tn-health-critical').should('contain', 0);
});

it('should show a passing health on the hosts when the agents are sending the heartbeat', () => {
cy.get('svg.fill-jungle-green-500').its('length').should('eq', 10);
it('should show the correct health on the hosts when the agents are sending the heartbeat', () => {
cy.get('svg.fill-jungle-green-500').its('length').should('eq', 6);
cy.get('svg.fill-yellow-500').its('length').should('eq', 4);
});
});
describe('Health is changed to critical when the heartbeat is not sent', () => {
Expand Down

0 comments on commit 2856d33

Please sign in to comment.