Moved and fixed scenario - because of 2 forms with same labels on site

This commit is contained in:
skowi 2013-05-14 11:00:19 +02:00
parent b1a3c2fca1
commit 1948089407
2 changed files with 33 additions and 47 deletions

View file

@ -16,11 +16,20 @@ Feature: Checkout security
| username | password | enabled |
| john | foo | yes |
| rick | bar | yes |
And the following zones are defined:
| name | type | members |
| UK | country | United Kingdom |
And the following shipping methods exist:
| zone | name |
| UK | DHL Express |
And the following payment methods exist:
| name | gateway | enabled |
| Credit Card | stripe | yes |
And I added product "PHP Top" to cart
And I go to the checkout start page
Scenario: Trying to sign in with bad credentials
during the checkout
Given I added product "PHP Top" to cart
And I go to the checkout start page
When I fill in the following:
| Username | john |
| Password | habababa |
@ -28,8 +37,6 @@ Feature: Checkout security
Then I should see "Bad credentials"
Scenario: Signing in during the checkout
Given I added product "PHP Top" to cart
And I go to the checkout start page
When I fill in the following:
| Username | john |
| Password | foo |
@ -37,12 +44,27 @@ Feature: Checkout security
Then I should be redirected to the checkout addressing step
Scenario: Creating account during the checkout
Given I added product "PHP Top" to cart
And I go to the checkout start page
When I fill in the following:
| Username | mike |
| Email | mike@example.com |
| Password | mikepass |
| Verification | mikepass |
| fos_user_registration_form_username | mike |
| fos_user_registration_form_email | mike@example.com |
| fos_user_registration_form_plainPassword_first | mikepass |
| fos_user_registration_form_plainPassword_second | mikepass |
And I press "Register"
Then I should be redirected to the checkout addressing step
Scenario: Creating account during the checkout
When I fill in the following:
| fos_user_registration_form_username | mike |
| fos_user_registration_form_email | mike@example.com |
| fos_user_registration_form_plainPassword_first | mikepass |
| fos_user_registration_form_plainPassword_second | mikepass |
And I press "Register"
And I fill in the shipping address to United Kingdom
And I press "Continue"
And I select the "DHL Express" radio button
And I press "Continue"
And I select the "Credit Card" radio button
And I press "Continue"
When I click "Place order"
Then I should be on the store homepage
And I should see "Thank you for your order!"

View file

@ -30,40 +30,4 @@ Feature: User registration
| Verification | foo |
And I press "Register"
Then I should be on registration page
And I should see "The entered passwords don't match"
Scenario: Creating account during the checkout
Given there are following taxonomies defined:
| name |
| Category |
And taxonomy "Category" has following taxons:
| Clothing > PHP T-Shirts |
And the following products exist:
| name | price | taxons |
| PHP Top | 5.99 | PHP T-Shirts |
And the following zones are defined:
| name | type | members |
| UK | country | United Kingdom |
And the following shipping methods exist:
| zone | name |
| UK | DHL Express |
And the following payment methods exist:
| name | gateway | enabled |
| Credit Card | stripe | yes |
And I added product "PHP Top" to cart
And I go to the checkout start page
When I fill in the following:
| fos_user_registration_form_username | mike |
| fos_user_registration_form_email | mike@example.com |
| fos_user_registration_form_plainPassword_first | mikepass |
| fos_user_registration_form_plainPassword_second | mikepass |
And I press "Register"
And I fill in the shipping address to United Kingdom
And I press "Continue"
And I select the "DHL Express" radio button
And I press "Continue"
And I select the "Credit Card" radio button
And I press "Continue"
When I click "Place order"
Then I should be on the store homepage
And I should see "Thank you for your order!"
And I should see "The entered passwords don't match"