User cancelled order handling

This commit is contained in:
2014-08-14 14:11:14 +02:00
parent 6da2d7a40e
commit 0e605828bd
11 changed files with 76 additions and 5 deletions
+22
View File
@@ -10,3 +10,25 @@ Feature: Active list view
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
And I wait 1 second
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