chore(cypress): wait before using sources

pull/5963/head
k3yi0 2022-06-27 14:04:37 +02:00
parent fe2ae90c51
commit 786233849f
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,7 @@ export const OAuthLogin = (name: string) => {
)
.then(() => {
expect(response.status).to.be.equal(200)
cy.log('visit login page')
return cy.visit('/oauth/oauth-mock/login')
})
})
@ -543,6 +544,8 @@ export function toInitialState() {
cy.get('body')
.should('be.visible')
.then(() => {
cy.log('wait before using sources')
cy.wait(2000)
cy.request({
method: 'GET',
url: `${apiUrl}/sources`,