1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-04-10 16:03:16 +00:00

test(cypress): wait for app init before checking login state

This commit is contained in:
mulahasanovic
2026-04-01 21:02:46 +02:00
parent 52371da4db
commit d7053ba628

View File

@@ -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')