feat(editor): Only redirect new users to blank canvas (no-changelog) (#5654)

* feat(editor): Bring new users to empty canvas

* fix(editor): Revert empty /workflows redirect

* Provide `COMMIT_INFO_BRANCH` and uncomment demo experiment

* Only change redirect after set-up/sign-up to new canvas

* Fix failing specs

* Prevent redirect for demo experiment

* Fix workflows cards spacing
This commit is contained in:
OlegIvaniv
2023-03-09 15:26:27 +01:00
committed by GitHub
parent ac2f89a18a
commit a9c63f980f
6 changed files with 26 additions and 41 deletions

View File

@@ -60,7 +60,7 @@ Cypress.Commands.add('waitForLoad', () => {
Cypress.Commands.add('signin', ({ email, password }) => {
const signinPage = new SigninPage();
const workflowPage = new WorkflowPage();
const workflowsPage = new WorkflowsPage();
cy.session(
[email, password],
@@ -74,10 +74,7 @@ Cypress.Commands.add('signin', ({ email, password }) => {
});
// we should be redirected to /workflows
cy.visit(workflowPage.url);
cy.url().should('include', workflowPage.url);
cy.intercept('GET', '/rest/workflows/new').as('loading');
cy.wait('@loading');
cy.url().should('include', workflowsPage.url);
},
{
validate() {