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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user