Add number property scenario.

This commit is contained in:
l3l0 2013-02-08 18:49:56 +01:00
parent ee9a985e2a
commit 6c5af6b31b

View file

@ -14,6 +14,7 @@ Feature: Products
| T-Shirt fabric | T-Shirt | text | |
| T-Shirt fare trade | Faretrade product | checkbox | |
| Color | color | choice | red, blue |
| Size | size | number | |
And the following products exist:
| name | price | options | properties |
| Super T-Shirt | 19.99 | T-Shirt size, T-Shirt color | T-Shirt fabric: Wool |
@ -145,6 +146,21 @@ Feature: Products
Then I should be on the page of product "Manchester United tee"
And I "Product has been successfully created." should appear on the page
@javascript
Scenario: Creating product with number property
Given I am on the product creation page
When I fill in the following:
| Name | Manchester United tee |
| Description | Interesting description |
| Price | 59.99 |
And go to "Properties" tab
And I click "Add property"
And I select "Color" from "Property"
And I fill in "Value" with "12"
When I press "Create"
Then I should be on the page of product "Manchester United tee"
And I "Product has been successfully created." should appear on the page
Scenario: Created products appear in the list
Given I am on the product creation page
When I fill in the following: