From 3911dacea8ffb11c9d18ea899f59cd0984ff1754 Mon Sep 17 00:00:00 2001 From: k3yi0 Date: Mon, 27 Jun 2022 14:32:42 +0200 Subject: [PATCH] chore(cypress): try to wait for redirectPath --- ui/cypress/support/commands.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/cypress/support/commands.ts b/ui/cypress/support/commands.ts index 67ab78950..4fe1f93b6 100644 --- a/ui/cypress/support/commands.ts +++ b/ui/cypress/support/commands.ts @@ -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`,