Add Monday demo journeys and walkthrough
This commit is contained in:
+7
-1
@@ -5,7 +5,7 @@ describe('landscape model', () => {
|
||||
it('provides the editable demo landscape', () => {
|
||||
const landscape = demoLandscape()
|
||||
expect(landscape.systems).toHaveLength(5)
|
||||
expect(landscape.scenarios.map((scenario) => scenario.name)).toEqual(['Place order', 'Register customer'])
|
||||
expect(landscape.scenarios.map((scenario) => scenario.name)).toEqual(expect.arrayContaining(['Place order', 'Register customer', 'Contact enquiry', 'Sample request', 'Commercial order', 'Order retry and recovery']))
|
||||
expect(landscape.scenarios[0].steps[2].connectionIds).toHaveLength(2)
|
||||
})
|
||||
it('round-trips a valid landscape and preserves positions', () => {
|
||||
@@ -23,4 +23,10 @@ describe('landscape model', () => {
|
||||
instance.capabilities[0].actions[0].payload = '{"changed":true}'
|
||||
expect(preset.capabilities.find((capability) => capability.id === 'analytics')?.actions[0].payload).not.toBe('{"changed":true}')
|
||||
})
|
||||
it('includes a bounded failure and retry demo', () => {
|
||||
const scenario = demoLandscape().scenarios.find((item) => item.id === 'order-retry')!
|
||||
const failed = scenario.steps.find((step) => step.outcome === 'rejected')!
|
||||
expect(failed.retryStepId).toBe('retry-3')
|
||||
expect(failed.recoveryStepId).toBe('retry-4')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user