Time dependant product categories for users
This commit is contained in:
@@ -53,4 +53,5 @@ Feature: Ordering a product as a user
|
||||
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
|
||||
Then the user page contains the product category beer
|
||||
And the user should see the products listed for the active list
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
Feature:
|
||||
The product categories are only visible on their specific times
|
||||
|
||||
@javascript
|
||||
Scenario: Product category visibility by day
|
||||
Given there is an open supplier with a menu
|
||||
And there is a table
|
||||
And I am signed in as a user
|
||||
When the user is on the order products page
|
||||
Then the user page contains the product category lunch
|
||||
When the product category lunch is not visible today
|
||||
And I reload the page
|
||||
Then the user page contains the product category beer
|
||||
And the user page does not contain the product category lunch
|
||||
|
||||
@javascript
|
||||
Scenario: Product category visibility by minute when inside the range
|
||||
Given there is an open supplier with a menu
|
||||
And there is a table
|
||||
And I am signed in as a user
|
||||
When the user is on the order products page
|
||||
Then the user page contains the product category lunch
|
||||
When the product category lunch is visible at this time
|
||||
And I reload the page
|
||||
Then the user page contains the product category beer
|
||||
And the user page contains the product category lunch
|
||||
|
||||
@javascript
|
||||
Scenario: Product category visibility by minute when category is visible after now
|
||||
Given there is an open supplier with a menu
|
||||
And there is a table
|
||||
And I am signed in as a user
|
||||
When the user is on the order products page
|
||||
Then the user page contains the product category lunch
|
||||
When the product category lunch is visible later than now
|
||||
And I reload the page
|
||||
Then the user page contains the product category beer
|
||||
And the user page does not contain the product category lunch
|
||||
|
||||
@javascript
|
||||
Scenario: Product category visibility by minute when category is visible before now
|
||||
Given there is an open supplier with a menu
|
||||
And there is a table
|
||||
And I am signed in as a user
|
||||
When the user is on the order products page
|
||||
Then the user page contains the product category lunch
|
||||
When the product category lunch is visible earlyer than now
|
||||
And I reload the page
|
||||
Then the user page contains the product category beer
|
||||
And the user page does not contain the product category lunch
|
||||
Reference in New Issue
Block a user