|
44 | 44 | <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForBundleProductCreatePageToLoad"/> |
45 | 45 |
|
46 | 46 | <!--Create bundle product--> |
47 | | - <conditionalClick selector="{{AdminProductFormBundleSection.bundleItemsToggle}}" dependentSelector="{{AdminProductFormBundleSection.bundleItemsToggle}}" visible="false" stepKey="conditionallyOpenSectionBundleItems"/> |
48 | | - <click selector="{{AdminProductFormBundleSection.addOption}}" stepKey="clickAddOption3"/> |
49 | | - <waitForElementVisible selector="{{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey="waitForBundleOptions"/> |
50 | | - <fillField selector="{{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput="{{BundleProduct.optionTitle1}}" stepKey="fillOptionTitle"/> |
51 | | - <selectOption selector="{{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput="{{BundleProduct.optionInputType1}}" stepKey="selectInputType"/> |
52 | | - <actionGroup ref="AdminClickAddProductToOptionActionGroup" stepKey="clickAddProductsToOption"/> |
53 | | - <actionGroup ref="FilterProductGridBySkuActionGroup" stepKey="filterBundleProductOptions"> |
54 | | - <argument name="product" value="$$simpleProduct1$$"/> |
| 47 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="conditionallyOpenSectionBundleItems"/> |
| 48 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickAddOption3"/> |
| 49 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForBundleOptions"/> |
| 50 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillOptionTitle"/> |
| 51 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectInputType"/> |
| 52 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickAddProductsToOption"/> |
| 53 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="filterBundleProductOptions"/> |
| 54 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectFirstGridRow"/> |
| 55 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="filterBundleProductOptions2"/> |
| 56 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectFirstGridRow2"/> |
| 57 | + <actionGroup ref="AddBundleOptionWithTwoProductsActionGroup" stepKey="clickAddSelectedBundleProducts"> |
| 58 | + <argument name="x" value="0"/> |
| 59 | + <argument name="n" value="1"/> |
| 60 | + <argument name="prodOneSku" value="$$simpleProduct1.sku$$"/> |
| 61 | + <argument name="prodTwoSku" value="$$simpleProduct2.sku$$"/> |
| 62 | + <argument name="optionTitle" value="{{BundleProduct.optionTitle1}}"/> |
| 63 | + <argument name="inputType" value="{{BundleProduct.optionInputType1}}"/> |
55 | 64 | </actionGroup> |
56 | | - <checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow"/> |
57 | | - <actionGroup ref="FilterProductGridBySkuActionGroup" stepKey="filterBundleProductOptions2"> |
58 | | - <argument name="product" value="$$simpleProduct2$$"/> |
59 | | - </actionGroup> |
60 | | - <checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow2"/> |
61 | | - <click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="clickAddSelectedBundleProducts"/> |
62 | | - <fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty1"/> |
63 | | - <fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty2"/> |
| 65 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillProductDefaultQty1"/> |
| 66 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillProductDefaultQty2"/> |
64 | 67 |
|
65 | 68 | <!--Fill out ancillary data on bundle product--> |
66 | 69 | <actionGroup ref="AncillaryPrepBundleProductActionGroup" stepKey="createBundledProductForTwoSimpleProducts"> |
|
82 | 85 | <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForBundleProductCreatePageToLoad2"/> |
83 | 86 |
|
84 | 87 | <!--Create bundle product 2--> |
85 | | - <conditionalClick selector="{{AdminProductFormBundleSection.bundleItemsToggle}}" dependentSelector="{{AdminProductFormBundleSection.bundleItemsToggle}}" visible="false" stepKey="conditionallyOpenSectionBundleItems2"/> |
86 | | - <click selector="{{AdminProductFormBundleSection.addOption}}" stepKey="clickAddOption32"/> |
87 | | - <waitForElementVisible selector="{{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey="waitForBundleOptions2"/> |
88 | | - <fillField selector="{{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput="{{BundleProduct.optionTitle1}}" stepKey="fillOptionTitle2"/> |
89 | | - <selectOption selector="{{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput="{{BundleProduct.optionInputType1}}" stepKey="selectInputType2"/> |
90 | | - <actionGroup ref="AdminClickAddProductToOptionActionGroup" stepKey="clickAddProductsToOption2"/> |
91 | | - <actionGroup ref="FilterProductGridBySkuActionGroup" stepKey="filterBundleProductOptionsx2"> |
92 | | - <argument name="product" value="$$simpleProduct3$$"/> |
93 | | - </actionGroup> |
94 | | - <checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRowx2"/> |
95 | | - <actionGroup ref="FilterProductGridBySkuActionGroup" stepKey="filterBundleProductOptions22"> |
96 | | - <argument name="product" value="$$simpleProduct4$$"/> |
| 88 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="conditionallyOpenSectionBundleItems2"/> |
| 89 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickAddOption32"/> |
| 90 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForBundleOptions2"/> |
| 91 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillOptionTitle2"/> |
| 92 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectInputType2"/> |
| 93 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickAddProductsToOption2"/> |
| 94 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="filterBundleProductOptionsx2"/> |
| 95 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectFirstGridRowx2"/> |
| 96 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="filterBundleProductOptions22"/> |
| 97 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectFirstGridRow22"/> |
| 98 | + <actionGroup ref="AddBundleOptionWithTwoProductsActionGroup" stepKey="clickAddSelectedBundleProducts2"> |
| 99 | + <argument name="x" value="0"/> |
| 100 | + <argument name="n" value="1"/> |
| 101 | + <argument name="prodOneSku" value="$$simpleProduct3.sku$$"/> |
| 102 | + <argument name="prodTwoSku" value="$$simpleProduct4.sku$$"/> |
| 103 | + <argument name="optionTitle" value="{{BundleProduct.optionTitle1}}"/> |
| 104 | + <argument name="inputType" value="{{BundleProduct.optionInputType1}}"/> |
97 | 105 | </actionGroup> |
98 | | - <checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow22"/> |
99 | | - <click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="clickAddSelectedBundleProducts2"/> |
100 | | - <fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty12"/> |
101 | | - <fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty22"/> |
| 106 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillProductDefaultQty12"/> |
| 107 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillProductDefaultQty22"/> |
102 | 108 |
|
103 | | - <fillField selector="{{AdminProductFormBundleSection.productName}}" userInput="{{BundleProduct.name2}}" stepKey="fillProductName2"/> |
104 | | - <fillField selector="{{AdminProductFormBundleSection.productSku}}" userInput="{{BundleProduct.sku2}}" stepKey="fillProductSku2"/> |
| 109 | + <actionGroup ref="AdminFillProductNameOnProductFormActionGroup" stepKey="fillProductName2"> |
| 110 | + <argument name="productName" value="{{BundleProduct.name2}}"/> |
| 111 | + </actionGroup> |
| 112 | + <actionGroup ref="AdminFillProductSkuOnProductFormActionGroup" stepKey="fillProductSku2"> |
| 113 | + <argument name="productSku" value="{{BundleProduct.sku2}}"/> |
| 114 | + </actionGroup> |
105 | 115 |
|
106 | 116 | <!--Trigger SEO drop down--> |
107 | 117 | <scrollTo selector="{{AdminProductFormBundleSection.seoDropdown}}" stepKey="moveToSEOSection"/> |
|
127 | 137 | <actionGroup ref="AdminDeleteAllProductsFromGridActionGroup" stepKey="selectAndDeleteProducts"/> |
128 | 138 |
|
129 | 139 | <!--Locating delete message--> |
130 | | - <!--<seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="deleteMessage"/>--> |
131 | | - <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="deleteMessage"> |
132 | | - <argument name="message" value="A total of 2 record(s) have been deleted."/> |
133 | | - </actionGroup> |
| 140 | + <seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="deleteMessage"/> |
134 | 141 |
|
135 | 142 | <!--Clear Cache - resets products according to enabled/disabled view--> |
136 | 143 | <actionGroup ref="ClearPageCacheActionGroup" stepKey="ClearPageCaches"/> |
|
0 commit comments