cypress: wait for introspect some before moving on
See if this helps the compliance cypress test to stop timing out.
@@ -41,6 +41,8 @@ Cypress.Commands.add("login", (url, username) => {
cy.visit(url)
cy.get('button').contains('Log in with Username').click().then(() => {
cy.url().should('include', '/dex/auth/')
+ cy.server()
+ cy.route('POST', '/api/v0/auth/introspect_some').as('getAuth')
// login
cy.get('#login')
@@ -55,6 +57,8 @@ Cypress.Commands.add("login", (url, username) => {
// close welcome modal if present
cy.get('app-welcome-modal').invoke('hide')
cy.saveStorage()
+
+ cy.wait('@getAuth')
})
})
})
