mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Add number property scenario.
This commit is contained in:
parent
ee9a985e2a
commit
6c5af6b31b
1 changed files with 16 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue