dox Executable Documentation

Mark as sick

Show actions

Given 'Bart' yielded his selection of menu 1 of order 'Test Order'
When I open the page for order 'Test Order'
Then there should be no error message
Then selection 1 should be un yieldable
Then selection 2 should be yieldable
Then selection 3 should not be yieldable nor un yieldable

Other user

When I open the page for order 'Test Order'
Given I am logged as the user 'Lisa'
Given 'Lisa' selected no dish for menu 1 of order 'Test Order'
Given 'Lisa' selected no dish for menu 2 of order 'Test Order'
Given 'Lisa' selected no dish for menu 3 of order 'Test Order'
When I yield selection 1
Then no selection should be yielded
Then the error message should be 'Could not update selection.'

Yield

When I open the page for order 'Test Order'
When I yield selection 1
Then there should be no error message
Then selection 1 should be yielded

Too late

Given now is '2001-01-04'
When I open the page for order 'Test Order'
When I yield selection 1
Then no selection should be yielded
Then the error message should be 'Could not update selection.'