dox Executable Documentation

Show selection

No selection

Given I am logged as the user 'Bart'
Given an order 'Test Order' with 1 menus each 1 dishes
When I open the page for order 'Test Order'
Then the error message should be 'You seem to have no selections for this order.'

Mixed selections

Given I am logged as the user 'Bart'
Given an order 'Test Order' with 3 menus each 2 dishes starting on '2000-01-03'
Given dish 1 of menu 1 of this order is 'Dish One A'
Given dish 2 of menu 1 of this order is 'Dish One B'
Given dish 1 of menu 2 of this order is 'Dish Two A'
Given dish 2 of menu 2 of this order is 'Dish Two B'
Given dish 1 of menu 3 of this order is 'Dish Three A'
Given dish 2 of menu 3 of this order is 'Dish Three B'
Given 'Bart' selected dish 'Dish One A' for menu 1 of order 'Test Order'
Given 'Bart' selected dish 'Dish Two B' for menu 2 of order 'Test Order'
Given 'Bart' selected no dish for menu 3 of order 'Test Order'
When I open the page for order 'Test Order'
Then there should be no error message
Then the name of the order should be 'Test Order'
Then there should be 3 selections
Then the date of selection 1 should be 'Monday, 3.1.2000'
Then the selected dish of selection 1 should be 'Dish One A'
Then the date of selection 2 should be 'Tuesday, 4.1.2000'
Then the selected dish of selection 2 should be 'Dish Two B'
Then the date of selection 3 should be 'Wednesday, 5.1.2000'
Then the selected dish of selection 3 should be 'You selected no dish'
Then selection 1 should have 1 not selected dish
Then not selected dish 1 of selection 1 should be 'Dish One B'
Then selection 2 should have 1 not selected dish
Then not selected dish 1 of selection 2 should be 'Dish Two A'
Then selection 3 should have 2 not selected dish
Then not selected dish 1 of selection 3 should be 'Dish Three A'
Then not selected dish 2 of selection 3 should be 'Dish Three B'

As admin

Given I am logged in as admin
Given an order 'Test Order' with 1 menus each 1 dishes
When I open the page for order 'Test Order'
Then I should be redirected to 'selections.html?order=1'