Supplier with specced time zone and night offset support

This commit is contained in:
2014-01-14 17:33:58 -03:00
parent c6f0976d11
commit 6c00604b83
13 changed files with 5972 additions and 3897 deletions
@@ -0,0 +1,11 @@
Feature: Serving a product category from a different time zone
@javascript
Scenario: Serving a product category from Buenos Aires
Given there is a confirmed and open supplier
And the supplier is in "Buenos Aires"
And the supplier has a night offset of 120 minutes
And there is a product category with product available on Fridays between 11PM and 1AM
Then the product category should not be visible on Thursday "11:30PM"
Then the product category should be visible on Friday "11:30PM"
Then the product category should be visible on Saturday "00:30AM"
@@ -1,4 +1,5 @@
Feature: Manage settings
Scenario: Changing the supplier email
Given there is a confirmed and open supplier
And I am signed in as supplier
@@ -11,3 +12,11 @@ Feature: Manage settings
When the supplier clicks on the new email confirmation link
Then the supplier gets redirected to the supplier settings path
And the supplier email is the new email and the unconfirmed email is empty
Scenario: Setting the timezone
Given there is a confirmed and open supplier
And I am signed in as supplier
When I visit the supplier settings path
And the supplier selects "(GMT-03:00) Buenos Aires" as Time Zone
And the supplier submits the supplier settings form
Then the supplier timezone should be "Buenos Aires"