Files
2015-09-21 15:22:43 +02:00

43 lines
1.9 KiB
Gherkin

Feature: Active list view
@javascript
Scenario: Loading lists and switching back to the active list 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 the user is on the active list 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 active list link in the side menu
Then the user should see the order in the active list view
@javascript
Scenario: Order disappears and counter adjusts when a placed order is cancelled
Given there is an open supplier with a menu
And there is a signed in user with a placed order
And the user is on the active list page
And the supplier orders placed counter for the user should be 1
When the order gets cancelled
Then the user should not see the order in the active list view
And the supplier orders placed counter for the user should be 0
@javascript
Scenario: Order disappears and counter adjusts when an active order is cancelled
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 the supplier orders in process counter for the user should be 1
When the order gets cancelled
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