Speccing and fixing user list loading and adding orders to other users
This commit is contained in:
@@ -32,3 +32,12 @@ Feature: Active list view
|
||||
And I wait 1 second
|
||||
Then the user should not see the order in the active list view
|
||||
And the supplier orders in process counter for the user should be 0
|
||||
|
||||
@javascript
|
||||
Scenario: Two users on the same list when one place an order
|
||||
Given There is an open supplier with a menu
|
||||
And there is a signed in user with an active order
|
||||
And the user is on the active list page
|
||||
And there is another signed in user on the same list
|
||||
When the other user orders a product 5 times
|
||||
Then the original user should see the newly placed order
|
||||
|
||||
@@ -36,3 +36,15 @@ Feature: Ordering a product as a user
|
||||
And the user clicks on the user order button
|
||||
Then an order with 2 products 'Heineken beer' should have been created
|
||||
And no order for the product 'Apple pie' should have been created
|
||||
|
||||
@javascript
|
||||
Scenario: Loading lists and switching to the order products view works, lists loading may unlink active list orders
|
||||
Given There is an open supplier with a menu
|
||||
And there is a signed in user with an active order
|
||||
And I wait 1 second
|
||||
And the user is on the order products page
|
||||
When the user opens the side menu
|
||||
And the user clicks on the lists link in the side menu
|
||||
And the user opens the side menu again
|
||||
And the user clicks on the order products link in the side menu
|
||||
Then the user should see the products listed for the active list
|
||||
|
||||
Reference in New Issue
Block a user