Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into pay-847-make-sender…
Browse files Browse the repository at this point in the history
…id-required-for-all-redis-messages
  • Loading branch information
netroy committed Sep 26, 2023
2 parents 9513f5f + 77d6e3f commit 624566a
Show file tree
Hide file tree
Showing 50 changed files with 1,571 additions and 136 deletions.
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

0 comments on commit 624566a

Please sign in to comment.