|
11 | 11 | <test name="AdminImportCustomizableOptionToProductWithSKUTest">
|
12 | 12 | <annotations>
|
13 | 13 | <features value="Catalog"/>
|
14 |
| - <title value="Check that 'trie price' block not available for simple product from options without 'trie price'"/> |
15 |
| - <description value="Check that 'trie price' block not available for simple product from options without 'trie price'"/> |
| 14 | + <title value="Import customizable options to a product with existing SKU"/> |
| 15 | + <description value="Import customizable options to a product with existing SKU"/> |
16 | 16 | <severity value="MAJOR"/>
|
17 | 17 | <testCaseId value="MAGETWO-98211"/>
|
18 | 18 | <useCaseId value="MAGETWO-70232"/>
|
19 | 19 | <group value="catalog"/>
|
20 | 20 | </annotations>
|
21 | 21 | <before>
|
22 | 22 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
23 |
| - |
24 | 23 | <!--Create category-->
|
| 24 | + <comment userInput="Create category" stepKey="commentCreateCategory"/> |
25 | 25 | <createData entity="ApiCategory" stepKey="createCategory"/>
|
26 |
| - |
27 | 26 | <!-- Create two product -->
|
| 27 | + <comment userInput="Create two product" stepKey="commentCreateTwoProduct"/> |
28 | 28 | <createData entity="SimpleProduct2" stepKey="createFirstProduct"/>
|
29 | 29 | <createData entity="ApiSimpleProduct" stepKey="createSecondProduct">
|
30 | 30 | <requiredEntity createDataKey="createCategory"/>
|
31 | 31 | </createData>
|
32 |
| - |
33 | 32 | </before>
|
34 | 33 | <after>
|
35 |
| - |
36 |
| - <!--Delete second product with changed sku--> |
| 34 | + <!--Delete second product with changed sku--> |
| 35 | + <comment userInput="Delete second product with changed sku" stepKey="commentDeleteProduct"/> |
37 | 36 | <actionGroup ref="deleteProductBySku" stepKey="deleteSecondProduct">
|
38 | 37 | <argument name="sku" value="$$createFirstProduct.sku$$-1"/>
|
39 | 38 | </actionGroup>
|
40 |
| - |
41 | 39 | <!--Delete created data-->
|
| 40 | + <comment userInput="Delete created data" stepKey="commentDeleteCreatedData"/> |
42 | 41 | <deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
|
43 | 42 | <deleteData createDataKey="createFirstProduct" stepKey="deleteFirstProduct"/>
|
44 |
| - |
45 | 43 | <actionGroup ref="logout" stepKey="logoutOfAdmin"/>
|
46 | 44 | </after>
|
47 |
| - |
48 | 45 | <!--Go to product page -->
|
| 46 | + <comment userInput="Go to product page" stepKey="commentGoToProductPage"/> |
49 | 47 | <amOnPage url="{{AdminProductEditPage.url($$createFirstProduct.id$$)}}" stepKey="goToProductEditPage"/>
|
50 | 48 | <waitForPageLoad stepKey="waitForProductEditPageLoad"/>
|
51 | 49 | <actionGroup ref="AddProductCustomOptionField" stepKey="addCutomOption1">
|
|
57 | 55 | <argument name="optionIndex" value="1"/>
|
58 | 56 | </actionGroup>
|
59 | 57 | <actionGroup ref="saveProductForm" stepKey="saveProduct"/>
|
60 |
| - |
61 | 58 | <!--Change second product sku to first product sku-->
|
| 59 | + <comment userInput="Change second product sku to first product sku" stepKey="commentChangeSecondProduct"/> |
62 | 60 | <amOnPage url="{{AdminProductEditPage.url($$createSecondProduct.id$$)}}" stepKey="goToProductEditPage1"/>
|
63 | 61 | <waitForPageLoad stepKey="waitForProductEditPageLoad1"/>
|
64 | 62 | <fillField selector="{{AdminProductFormSection.productSku}}" userInput="$$createFirstProduct.sku$$" stepKey="fillProductSku1"/>
|
65 |
| - |
66 | 63 | <!--Import customizable options and check-->
|
| 64 | + <comment userInput="Import customizable options and check" stepKey="commentImportOptions"/> |
67 | 65 | <conditionalClick selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" dependentSelector="{{AdminProductCustomizableOptionsSection.addOptionBtn}}" visible="false" stepKey="openCustomOptionSection"/>
|
68 | 66 | <actionGroup ref="importProductCustomizableOptions" stepKey="importOptions">
|
69 | 67 | <argument name="productName" value="$$createFirstProduct.name$$"/>
|
|
76 | 74 | <argument name="option" value="ProductOptionField2"/>
|
77 | 75 | <argument name="optionIndex" value="1"/>
|
78 | 76 | </actionGroup>
|
79 |
| - |
80 |
| - <!--SAve product and check sku changed message--> |
| 77 | + <!--Save product and check sku changed message--> |
| 78 | + <comment userInput="Save product and check sku changed message" stepKey="commentSAveProductAndCheck"/> |
81 | 79 | <actionGroup ref="saveProductForm" stepKey="saveProduct1"/>
|
82 | 80 | <see userInput="SKU for product $$createSecondProduct.name$$ has been changed to $$createFirstProduct.sku$$-1." stepKey="seeSkuChangedMessage"/>
|
83 | 81 | </test>
|
|
0 commit comments