From d7053ba628af8606d22847f69f828b594700b6bf Mon Sep 17 00:00:00 2001 From: mulahasanovic Date: Wed, 1 Apr 2026 21:02:46 +0200 Subject: [PATCH] test(cypress): wait for app init before checking login state --- cypress/integration/sasjs.tests.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypress/integration/sasjs.tests.ts b/cypress/integration/sasjs.tests.ts index e999de7..5ed0d90 100644 --- a/cypress/integration/sasjs.tests.ts +++ b/cypress/integration/sasjs.tests.ts @@ -13,6 +13,8 @@ context('sasjs-tests', function () { }) function loginIfNeeded() { + cy.get('login-form, tests-view', { timeout: 30000 }).should('exist') + cy.get('body').then(($body) => { if ($body.find('login-form').length > 0) { cy.get('login-form')