From 04ead5abdaa4c722ebe2a0be9e91224e192c0fcf Mon Sep 17 00:00:00 2001 From: Holger Stitz Date: Fri, 2 Jun 2023 23:15:09 +0200 Subject: [PATCH] fix: health check by checking for include text --- cypress/e2e/health-check.cy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/e2e/health-check.cy.ts b/cypress/e2e/health-check.cy.ts index e5883318b..a8fb40e4d 100644 --- a/cypress/e2e/health-check.cy.ts +++ b/cypress/e2e/health-check.cy.ts @@ -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'); });