Skip to content

Commit

Permalink
fix: health check by checking for include text
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkh committed Jun 2, 2023
1 parent a941a92 commit 04ead5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/e2e/health-check.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('Health check for Cypress e2e test', () => {
// Check the user avatar, and then log out again
cy.get('[data-testid="visyn-user-avatar"]').should('include.text', 'A').click().parent().contains('Logout').click();
// Assert the login modal to be shown again
cy.get('[data-testid="visyn-login-modal"]').should('be.visible');
cy.get('[data-testid="visyn-login-modal"]').should('include.text', 'Demo App');
// Assert the content to be invisible again
cy.get('body').should('not.include.text', 'Visualization type');
});
Expand Down

0 comments on commit 04ead5a

Please sign in to comment.