|
11 | 11 | <actionGroup name="CreateBundleProductForTwoSimpleProducts">
|
12 | 12 | <arguments>
|
13 | 13 | <argument name="bundleProduct"/>
|
| 14 | + <argument name="simpleProductFirst"/> |
| 15 | + <argument name="simpleProductSecond"/> |
14 | 16 | </arguments>
|
15 | 17 | <fillField userInput="{{bundleProduct.sku}}" selector="{{AdminProductFormSection.productSku}}" stepKey="fillProductSku"/>
|
16 | 18 | <fillField userInput="{{bundleProduct.name}}" selector="{{AdminProductFormSection.productName}}" stepKey="fillProductName"/>
|
|
19 | 21 | <click selector="{{AdminProductFormBundleSection.AddOption}}" stepKey="clickAddOptionButton"/>
|
20 | 22 | <fillField userInput="{{bundleProduct.option_title}}" selector="{{AdminProductFormBundleSection.OptionTitle}}" stepKey="fillOptionTitle"/>
|
21 | 23 | <click selector="{{AdminProductFormBundleSection.AddProductsToOption}}" stepKey="clickAddProductsToOption"/>
|
22 |
| - <click selector="{{AdminProductFormBundleSection.selectAll}}" stepKey="tickSelectAllCheckbox"/> |
| 24 | + |
| 25 | + <!-- Select First Simple --> |
| 26 | + <click selector="{{AdminProductGridFilterSection.filters}}" stepKey="clickOnFiltersButton"/> |
| 27 | + <conditionalClick selector="{{AdminProductGridFilterSection.clearAll}}" dependentSelector="{{AdminProductGridFilterSection.clearAll}}" visible="true" stepKey="clearFilters"/> |
| 28 | + <fillField selector="{{AdminProductGridFilterSection.name}}" userInput="{{simpleProductFirst.name}}" stepKey="fillNameFilter"/> |
| 29 | + <click selector="{{AdminProductGridFilterSection.applyFilters}}" stepKey="applyFilters"/> |
| 30 | + <click selector="{{AdminProductFormBundleSection.firstRowCheckbox}}" stepKey="selectFirstSimple"/> |
| 31 | + |
| 32 | + <!-- Select Second Simple --> |
| 33 | + <click selector="{{AdminProductGridFilterSection.filters}}" stepKey="clickOnFiltersButton2"/> |
| 34 | + <conditionalClick selector="{{AdminProductGridFilterSection.clearAll}}" dependentSelector="{{AdminProductGridFilterSection.clearAll}}" visible="true" stepKey="clearFilters2"/> |
| 35 | + <fillField selector="{{AdminProductGridFilterSection.name}}" userInput="{{simpleProductSecond.name}}" stepKey="fillNameFilter2"/> |
| 36 | + <click selector="{{AdminProductGridFilterSection.applyFilters}}" stepKey="applyFilters2"/> |
| 37 | + <click selector="{{AdminProductFormBundleSection.firstRowCheckbox}}" stepKey="selectSecondSimple"/> |
| 38 | + |
| 39 | + <!-- Add Selected Simples To Bundle --> |
23 | 40 | <click selector="{{AdminProductFormBundleSection.AddSelectedProducts}}" stepKey="clickAddSelectedProductsButton"/>
|
24 | 41 | <fillField userInput="{{bundleProduct.default_quantity1}}" selector="{{AdminProductFormBundleSection.DefaultQuantity1}}" stepKey="fillDefaultQuantityForFirstProduct"/>
|
25 | 42 | <fillField userInput="{{bundleProduct.default_quantity2}}" selector="{{AdminProductFormBundleSection.DefaultQuantity2}}" stepKey="fillDefaultQuantityForSecondProduct"/>
|
|
0 commit comments