Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add onboarding flow #7212

Merged
merged 27 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
20ee64a
feat: Add onboarding flow
mutdmour Sep 19, 2023
af119c8
fix: use updated workflow
mutdmour Sep 19, 2023
459744f
fix: use updated workflow
mutdmour Sep 19, 2023
d205af5
fix: add workflow metadata
mutdmour Sep 19, 2023
c4fc430
test: add workflow store tests
mutdmour Sep 19, 2023
3d435dd
test: add e2e tests
mutdmour Sep 19, 2023
c5b77d0
test: enable
mutdmour Sep 19, 2023
c47fccb
fix: tests
mutdmour Sep 19, 2023
610ab99
chore: refactor
mutdmour Sep 19, 2023
d68a1ec
fix: add loading
mutdmour Sep 20, 2023
d1ce7c7
fix: migraitons
mutdmour Sep 20, 2023
78ec55b
fix: add sentry reporting
mutdmour Sep 20, 2023
49d6d1a
Merge branch 'master' of github.com:n8n-io/n8n into ado-1104
mutdmour Sep 20, 2023
3c28e79
fix: address product feedback
mutdmour Sep 21, 2023
e55a195
fix: address issues with saving current workflow
mutdmour Sep 21, 2023
f87e891
test: update tests
mutdmour Sep 21, 2023
a5f7462
fix: add pinned data and settings to import
mutdmour Sep 21, 2023
8f63a93
test: fix test
mutdmour Sep 21, 2023
ada7db6
Merge branch 'master' of github.com:n8n-io/n8n into ado-1104
mutdmour Sep 21, 2023
f9b22ef
Merge branch 'master' of github.com:n8n-io/n8n into ado-1104
mutdmour Sep 21, 2023
1444550
fix: add type to obj
mutdmour Sep 22, 2023
abfba65
fix: rename type
mutdmour Sep 22, 2023
de2a405
Merge branch 'master' of github.com:n8n-io/n8n into ado-1104
mutdmour Sep 25, 2023
ede86e5
merge in masteR
mutdmour Sep 25, 2023
46a34d4
fix: prevent dropping tables
mutdmour Sep 25, 2023
b128479
chore: merge migrations into one
mutdmour Sep 25, 2023
3276a67
fix: transaction only for sqlite
mutdmour Sep 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions cypress/e2e/29-templates.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { TemplatesPage } from '../pages/templates';
import { WorkflowPage } from '../pages/workflow';

import OnboardingWorkflow from '../fixtures/Onboarding_workflow.json';

const templatesPage = new TemplatesPage();
const workflowPage = new WorkflowPage();

describe('Templates', () => {
it('can open onboarding flow', () => {
templatesPage.actions.openOnboardingFlow(1234, OnboardingWorkflow.name, OnboardingWorkflow);
cy.url().then(($url) => {
expect($url).to.match(/.*\/workflow\/.*?onboardingId=1234$/);
})

workflowPage.actions.shouldHaveWorkflowName(`Demo: ${name}`);

workflowPage.getters.canvasNodes().should('have.length', 4);
workflowPage.getters.stickies().should('have.length', 1);
workflowPage.getters.canvasNodes().first().should('have.descendants', '.node-pin-data-icon');
});

it('can import template', () => {
templatesPage.actions.importTemplate(1234, OnboardingWorkflow.name, OnboardingWorkflow);

cy.url().then(($url) => {
expect($url).to.include('/workflow/new?templateId=1234');
});

workflowPage.getters.canvasNodes().should('have.length', 4);
workflowPage.getters.stickies().should('have.length', 1);
workflowPage.actions.shouldHaveWorkflowName(OnboardingWorkflow.name);
});
});
Loading
Loading