Add specs for user changing table

This commit is contained in:
2013-12-26 09:30:57 +01:00
parent 50a95fa6fb
commit c6f0976d11
7 changed files with 94 additions and 4 deletions
@@ -0,0 +1,24 @@
Feature: Changing table
@javascript
Scenario: Scanning a table not yet occupied and change to it
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 homepage
And there is another table
When the user scans a QR code of another not occupied table
Then the user should see a popup asking the user if he would like to change table
When the uses indicates in the popup that he wants to change the table
And I wait 1 second
Then the user should see the supplier menu having the other table as base
And the user list should have been moved to the other table
@javascript
Scenario: Scanning a table already occupied
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 homepage
And there is another table with an active list of another user
When the user scans a QR code of another occupied table
Then the user should see a popup telling him that the table is already occupied
And the user list should not have been moved to the other table
@@ -1,4 +1,5 @@
Feature: Sign up as user using facebook
Note that facebook is automatically signing in
@javascript
Scenario: Happy flow
@@ -27,3 +28,5 @@ Feature: Sign up as user using facebook
And I wait 4 seconds
Then the newly created user info should be stored in the local storage
Scenario: Facebook problem OmniAuth.config.mock_auth[:facebook] = :invalid_credentials
Scenario: Valid facebook login, but declines information requested by scope