forked from pantheon-systems/drops-7
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pantheon-systems#27 from lsolesen/frontpage-behat
Added frontpage behat test
- Loading branch information
Showing
1 changed file
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
Feature: Frontpage | ||
To have people being interested in your shop | ||
As any user | ||
I should be an appealing homepage | ||
|
||
Background: | ||
Given I am on the homepage | ||
|
||
Scenario: I should be able to checkout | ||
Then I should see the link "Checkout" | ||
When I click "Checkout" | ||
Then I should get a "200" HTTP response | ||
|
||
Scenario: User should be able to login | ||
Then I should see the link "Log in" | ||
When I click "Log in" | ||
Then I should get a "200" HTTP response | ||
|
||
Scenario: User should be able to create account | ||
Then I should see the link "Create account" | ||
When I click "Create account" | ||
Then I should get a "200" HTTP response | ||
|
||
Scenario: User should see discount | ||
Then I should see "SAVE 25%" | ||
And I should see "Purchases made between June 5 - 12 will be discounted" | ||
And I should see "Offer Details" | ||
|
||
Scenario: User should see free shipping | ||
Then I should see "Free shipping" | ||
And I should see "on orders over" | ||
And I should see "$0.99" | ||
|
||
Scenario: User should see the top menu | ||
Then I should see the following <links> | ||
| links | | ||
| To carry | | ||
| To drink with | | ||
| To geek out | | ||
| To wear | | ||
| All products | | ||
| Blog | | ||
| Contact | | ||
| About | | ||
|
||
Scenario: User should see the bottom menu | ||
Then I should see the following <texts> | ||
| texts | | ||
| Company info | | ||
| Service & support | | ||
| Security & privacy | | ||
| Shipping & returns | | ||
Then I should see the following <links> | ||
| links | | ||
| About us | | ||
| Service agreements | | ||
| Shipping fees | | ||
| Terms of use | | ||
| Our security policy | | ||
| Press links | | ||
|
||
Scenario: User should see the social menu | ||
Then I should see the following <links> | ||
| links | | ||
| Like us on Facebook | | ||
| Follow Us on Twitter | | ||
| What We Like on Pinterest | | ||
| Terms of use | | ||
| Our security policy | | ||
| Press links | | ||
|
||
Scenario: User should see the payment menu | ||
Then I should see the following <links> | ||
| links | | ||
| MasterCard | | ||
| PayPal | | ||
| Visa | | ||
| American Express | | ||
|
||
Scenario: User should be able to search | ||
Then I should see "Search" | ||
When I fill in "Search" with "Cap" | ||
And I press "edit-submit-display-products" | ||
Then I should get a "200" HTTP response |