|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 | 10 | xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
|
11 |
| - <test name="SimpleProductTwoCustomOptions"> |
| 11 | + <test name="SimpleProductTwoCustomOptionsTest"> |
12 | 12 | <annotations>
|
13 |
| - <features value="CustomOptions" /> |
| 13 | + <features value="Catalog"/> |
14 | 14 | <stories value="Create simple product with two custom options" />
|
15 | 15 | <title value="Admin should be able to create simple product with two custom options"/>
|
16 | 16 | <description value="Admin should be able to create simple product with two custom options"/>
|
17 | 17 | <severity value="AVERAGE"/>
|
18 | 18 | <testCaseId value="MC-248"/>
|
19 |
| - <group value="Levi"/> |
| 19 | + <group value="Catalog"/> |
20 | 20 | </annotations>
|
21 | 21 | <before>
|
22 | 22 | <!-- log in as admin -->
|
|
43 | 43 |
|
44 | 44 | <!-- Create a custom option with 2 values -->
|
45 | 45 | <actionGroup ref="CreateCustomRadioOptions" stepKey="createCustomOption1">
|
46 |
| - <argument name="categoryName" value="ProductOptionRadiobutton.title"/> |
| 46 | + <argument name="customOptionName" value="ProductOptionRadiobutton.title"/> |
47 | 47 | <argument name="productOption" value="ProductOptionField"/>
|
48 | 48 | <argument name="productOption2" value="ProductOptionField2"/>
|
49 | 49 | </actionGroup>
|
50 | 50 |
|
51 | 51 | <!-- Create another custom option with 2 values -->
|
52 | 52 | <actionGroup ref="CreateCustomRadioOptions" stepKey="createCustomOption2">
|
53 |
| - <argument name="categoryName" value="ProductOptionRadiobutton.title"/> |
| 53 | + <argument name="customOptionName" value="ProductOptionRadiobutton.title"/> |
54 | 54 | <argument name="productOption" value="ProductOptionField"/>
|
55 | 55 | <argument name="productOption2" value="ProductOptionField2"/>
|
56 | 56 | </actionGroup>
|
57 | 57 |
|
58 | 58 | <!-- Save the product -->
|
59 |
| - <click stepKey="saveProduct" selector="{{AdminProductFormActionSection.saveButton}}" /> |
60 |
| - <waitForPageLoad stepKey="waitForProductSaved" /> |
| 59 | + <click stepKey="saveProduct" selector="{{AdminProductFormActionSection.saveButton}}"/> |
| 60 | + <waitForPageLoad stepKey="waitForProductSaved"/> |
61 | 61 | <seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="assertSuccess"/>
|
62 | 62 |
|
63 | 63 | <!-- navigate to the created product page -->
|
64 |
| - <amOnPage url="/{{SimpleProduct3.name}}.html" stepKey="goToCreatedProduct" /> |
65 |
| - <waitForPageLoad stepKey="waitForProductPageLoad" /> |
| 64 | + <amOnPage url="/{{SimpleProduct3.name}}.html" stepKey="goToCreatedProduct"/> |
| 65 | + <waitForPageLoad stepKey="waitForProductPageLoad"/> |
66 | 66 |
|
67 | 67 | <!-- Check to make sure all of the created names are there -->
|
68 |
| - <see stepKey="assertNameInFirstOption" selector="{{StorefrontProductInfoMainSection.nthCustomOption('1')}}" userInput="{{ProductOptionField.title}}" /> |
69 |
| - <see stepKey="assertNameInSecondOption" selector="{{StorefrontProductInfoMainSection.nthCustomOption('2')}}" userInput="{{ProductOptionField.title}}" /> |
70 |
| - <see stepKey="assertSecondNameInFirstOption" selector="{{StorefrontProductInfoMainSection.nthCustomOption('1')}}" userInput="{{ProductOptionField2.title}}" /> |
71 |
| - <see stepKey="assertSecondNameInSecondOption" selector="{{StorefrontProductInfoMainSection.nthCustomOption('2')}}" userInput="{{ProductOptionField2.title}}" /> |
| 68 | + <see stepKey="assertNameInFirstOption" selector="{{StorefrontProductInfoMainSection.nthCustomOption('1')}}" userInput="{{ProductOptionField.title}}"/> |
| 69 | + <see stepKey="assertNameInSecondOption" selector="{{StorefrontProductInfoMainSection.nthCustomOption('2')}}" userInput="{{ProductOptionField.title}}"/> |
| 70 | + <see stepKey="assertSecondNameInFirstOption" selector="{{StorefrontProductInfoMainSection.nthCustomOption('1')}}" userInput="{{ProductOptionField2.title}}"/> |
| 71 | + <see stepKey="assertSecondNameInSecondOption" selector="{{StorefrontProductInfoMainSection.nthCustomOption('2')}}" userInput="{{ProductOptionField2.title}}"/> |
72 | 72 |
|
73 | 73 | <!-- Check to see that all of the created prices are there -->
|
74 |
| - <see stepKey="assertPriceInFirstOption" selector="{{StorefrontProductInfoMainSection.nthCustomOption('1')}}" userInput="{{ProductOptionField.price}}" /> |
75 |
| - <see stepKey="assertPriceInSecondOption" selector="{{StorefrontProductInfoMainSection.nthCustomOption('2')}}" userInput="{{ProductOptionField.price}}" /> |
76 |
| - <see stepKey="assertSecondPriceInFirstOption" selector="{{StorefrontProductInfoMainSection.nthCustomOption('1')}}" userInput="{{ProductOptionField2.price}}" /> |
77 |
| - <see stepKey="assertSecondPriceInSecondOption" selector="{{StorefrontProductInfoMainSection.nthCustomOption('2')}}" userInput="{{ProductOptionField2.price}}" /> |
| 74 | + <see stepKey="assertPriceInFirstOption" selector="{{StorefrontProductInfoMainSection.nthCustomOption('1')}}" userInput="{{ProductOptionField.price}}"/> |
| 75 | + <see stepKey="assertPriceInSecondOption" selector="{{StorefrontProductInfoMainSection.nthCustomOption('2')}}" userInput="{{ProductOptionField.price}}"/> |
| 76 | + <see stepKey="assertSecondPriceInFirstOption" selector="{{StorefrontProductInfoMainSection.nthCustomOption('1')}}" userInput="{{ProductOptionField2.price}}"/> |
| 77 | + <see stepKey="assertSecondPriceInSecondOption" selector="{{StorefrontProductInfoMainSection.nthCustomOption('2')}}" userInput="{{ProductOptionField2.price}}"/> |
78 | 78 |
|
79 | 79 | <!-- select two of the radio buttons -->
|
80 |
| - <click stepKey="selectFirstCustomOption" selector="{{StorefrontProductInfoMainSection.nthCustomOptionInput('1','2')}}" /> |
81 |
| - <click stepKey="selectSecondCustomOption" selector="{{StorefrontProductInfoMainSection.nthCustomOptionInput('2','1')}}" /> |
| 80 | + <click stepKey="selectFirstCustomOption" selector="{{StorefrontProductInfoMainSection.nthCustomOptionInput('1','2')}}"/> |
| 81 | + <click stepKey="selectSecondCustomOption" selector="{{StorefrontProductInfoMainSection.nthCustomOptionInput('2','1')}}"/> |
82 | 82 |
|
83 | 83 | <!-- Check that the price has actually changed -->
|
84 |
| - <see stepKey="assertPriceHasChanged" selector="{{StorefrontProductInfoMainSection.productPrice}}" userInput="{{ProductOptionField2.expected_value}}" /> |
| 84 | + <see stepKey="assertPriceHasChanged" selector="{{StorefrontProductInfoMainSection.productPrice}}" userInput="153.00"/> |
85 | 85 | </test>
|
86 | 86 | </tests>
|
0 commit comments