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`,