-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into pay-847-make-sender…
…id-required-for-all-redis-messages
- Loading branch information
Showing
50 changed files
with
1,571 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); | ||
}); |
Oops, something went wrong.