Given an order 'Test Order' with 3 menus each 2 dishes

When I export the order 'Test Order'

Then I should be redirected to '../order/list.html'

Given I am logged in as admin

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 '1A'

Given dish 2 of menu 1 of this order is '1B'

Given dish 1 of menu 2 of this order is '2A'

Given dish 2 of menu 2 of this order is '2B'

Given dish 1 of menu 3 of this order is '3A'

Given dish 2 of menu 3 of this order is '3B'

When I export the order 'Test Order'

Then there should be 6 rows

Then the date of row 1 should be '2000-01-03'

Then the dish of row 1 should be '1A'

Then the sum of row 1 should be 0

Given I am logged in as admin

Given an order 'Test Order' with 1 menus each 2 dishes starting on '2000-01-03'

Given dish 1 of menu 1 of this order is 'A'

Given dish 2 of menu 1 of this order is 'B'

Given the user 'Bart'

Given the user 'Lisa'

Given the user 'Marge'

Given the user 'Homer'

Given 'Bart' selected dish 'A' for menu 1 of order 'Test Order'

Given 'Lisa' selected dish 'B' for menu 1 of order 'Test Order'

Given 'Marge' selected dish 'A' for menu 1 of order 'Test Order'

Given 'Homer' selected no dish for menu 1 of order 'Test Order'

When I export the order 'Test Order'

Then there should be 2 rows

Then the dish of row 1 should be 'A'

Then the sum of row 1 should be 2

Then the choosers of row 1 should be 'Bart, Marge'

Then the dish of row 2 should be 'B'

Then the sum of row 2 should be 1

Then the choosers of row 2 should be 'Lisa'

Given I am logged in as admin

Given an order 'Test Order' with 1 menus each 1 dishes

Given dish 1 of menu 1 of this order is 'A'

Given the user 'Bart'

Given the user 'Lisa'

Given 'Bart' selected dish 'A' for menu 1 of order 'Test Order'

Given 'Lisa' selected dish 'A' for menu 1 of order 'Test Order'

Given 'Bart' was deleted

When I export the order 'Test Order'

Then there should be 1 rows

Then the choosers of row 1 should be 'Deleted, Lisa'