chore(cypress): try to wait for redirectPath

pull/5963/head
k3yi0 2022-06-27 14:32:42 +02:00
parent 786233849f
commit 3911dacea8
1 changed files with 1 additions and 3 deletions

View File

@ -539,13 +539,11 @@ function wrapChronografUsers() {
export function toInitialState() {
cy.OAuthLogin('test')
.url()
.should('contain', '/landing')
.should('contain', 'redirectPath')
.then(() => {
cy.get('body')
.should('be.visible')
.then(() => {
cy.log('wait before using sources')
cy.wait(2000)
cy.request({
method: 'GET',
url: `${apiUrl}/sources`,