Add Monday demo journeys and walkthrough

This commit is contained in:
2026-11-05 22:28:38 +00:00
parent 61b0097dc2
commit c8a81eba08
6 changed files with 50 additions and 3 deletions
+7 -1
View File
@@ -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')
})
})