|
| 1 | +# Sylius/Sylius:features/product/managing_products/adding_products_with_text_attribute.feature |
| 2 | + |
| 3 | +@managing_products |
| 4 | +Feature: Adding a new product with text attribute |
| 5 | + In order to extend my merchandise with more complex products |
| 6 | + As an Administrator |
| 7 | + I want to add a new product with text attribute to the shop |
| 8 | + |
| 9 | + Background: |
| 10 | + Given the store operates on a single channel in "United States" |
| 11 | + And the store has a text product attribute "Gun caliber" |
| 12 | + And the store has a text product attribute "Overall length" |
| 13 | + And I am logged in as an administrator |
| 14 | + |
| 15 | + @ui @javascript |
| 16 | + Scenario: Adding a text attribute to product |
| 17 | + Given I want to create a new simple product |
| 18 | + When I specify its code as "44_MAGNUM" |
| 19 | + And I name it "44 Magnum" in "English (United States)" |
| 20 | + And I set its price to "$100.00" for "United States" channel |
| 21 | + And I set its "Gun caliber" attribute to "11 mm" in "English (United States)" |
| 22 | + And I add it |
| 23 | + Then I should be notified that it has been successfully created |
| 24 | + And the product "44 Magnum" should appear in the store |
| 25 | + And attribute "Gun caliber" of product "44 Magnum" should be "11 mm" |
| 26 | + |
| 27 | + @ui @javascript |
| 28 | + Scenario: Adding multiple text attributes to product |
| 29 | + Given I want to create a new simple product |
| 30 | + When I specify its code as "44_MAGNUM" |
| 31 | + And I name it "44 Magnum" in "English (United States)" |
| 32 | + And I set its price to "$100.00" for "United States" channel |
| 33 | + And I set its "Gun caliber" attribute to "11 mm" in "English (United States)" |
| 34 | + And I set its "Overall length" attribute to "30.5 cm" in "English (United States)" |
| 35 | + And I add it |
| 36 | + Then I should be notified that it has been successfully created |
| 37 | + And the product "44 Magnum" should appear in the store |
| 38 | + And attribute "Gun caliber" of product "44 Magnum" should be "11 mm" |
| 39 | + And attribute "Overall length" of product "44 Magnum" should be "30.5 cm" |
| 40 | + |
| 41 | + @ui @javascript |
| 42 | + Scenario: Adding and removing text attributes on product create page |
| 43 | + Given I want to create a new simple product |
| 44 | + When I specify its code as "44_MAGNUM" |
| 45 | + And I name it "44 Magnum" in "English (United States)" |
| 46 | + And I set its price to "$100.00" for "United States" channel |
| 47 | + And I set its "Gun caliber" attribute to "11 mm" in "English (United States)" |
| 48 | + And I set its "Overall length" attribute to "30.5 cm" in "English (United States)" |
| 49 | + And I remove its "Gun caliber" attribute |
| 50 | + And I add it |
| 51 | + Then I should be notified that it has been successfully created |
| 52 | + And the product "44 Magnum" should appear in the store |
| 53 | + And attribute "Overall length" of product "44 Magnum" should be "30.5 cm" |
| 54 | + And product "44 Magnum" should not have a "Gun caliber" attribute |
0 commit comments