|
74 | 74 | <grabMultiple selector="{{page.product(index)}}" stepKey="grabProducts"/>
|
75 | 75 | <assertCount stepKey="assertCount" expected="{{count}}" expectedType="int" actualType="variable" actual="grabProducts"/>
|
76 | 76 | </actionGroup>
|
77 |
| - <actionGroup name="addCategoryConditionToProductsBlock"> |
| 77 | + <actionGroup name="addConditionToProductConditions"> |
78 | 78 | <arguments>
|
79 |
| - <argument name="page" defaultValue=""/> |
80 |
| - <argument name="category" defaultValue="" type="string"/> |
81 |
| - <argument name="conditionIndex" defaultValue="1" type="string"/> |
82 |
| - </arguments> |
83 |
| - <waitForElementVisible selector="{{page.conditionsList}}" stepKey="waitForConditionsToLoad"/> |
84 |
| - <click selector="{{page.conditionsListAddButton}}" stepKey="addCondition"/> |
85 |
| - <selectOption selector="{{page.conditionsListAddTypeSelect}}" userInput="Magento\CatalogWidget\Model\Rule\Condition\Product|category_ids" stepKey="selectCategoryOption"/> |
86 |
| - <waitForLoadingMaskToDisappear stepKey="waitForCategoriesToLoad"/> |
87 |
| - <click selector="{{page.conditionsListConditionPlaceholder}}" stepKey="revealCategoryInput"/> |
88 |
| - <fillField selector="{{page.conditionsListConditionInput}}" userInput="{{category}}" stepKey="fillCategoryField"/> |
89 |
| - </actionGroup> |
90 |
| - <actionGroup name="addSKUConditionToProductsBlock"> |
91 |
| - <arguments> |
92 |
| - <argument name="page" defaultValue=""/> |
93 |
| - <argument name="SKU" defaultValue="" type="string"/> |
94 |
| - <argument name="conditionIndex" defaultValue="1" type="string"/> |
| 79 | + <argument name="conditionType" defaultValue="PageBuilderProductsConditionCategory"/> |
| 80 | + <argument name="conditionInput" defaultValue="1" type="string"/> |
| 81 | + <argument name="index" defaultValue="1" type="string"/> |
95 | 82 | </arguments>
|
96 |
| - <waitForElementVisible selector="{{page.conditionsList}}" stepKey="waitForConditionsToLoad"/> |
97 |
| - <click selector="{{page.conditionsListAddButton}}" stepKey="addCondition"/> |
98 |
| - <selectOption selector="{{page.conditionsListAddTypeSelect}}" userInput="Magento\CatalogWidget\Model\Rule\Condition\Product|sku" stepKey="selectSKUOption"/> |
99 |
| - <waitForLoadingMaskToDisappear stepKey="waitForCategoriesToLoad"/> |
100 |
| - <click selector="{{page.conditionsListConditionPlaceholder}}" stepKey="revealSKUInput"/> |
101 |
| - <fillField selector="{{page.conditionsListConditionInput}}" userInput="{{SKU}}" stepKey="fillSKUField"/> |
| 83 | + <comment userInput="addConditionToProductConditions" stepKey="comment"/> |
| 84 | + <waitForElementVisible selector="{{ProductsContentTypeForm.conditionsList}}" stepKey="waitForConditionsToLoad"/> |
| 85 | + <waitForElementVisible selector="{{ProductsContentTypeForm.conditionsListAddButton(index)}}" stepKey="waitForAddConditionButton"/> |
| 86 | + <click selector="{{ProductsContentTypeForm.conditionsListAddButton(index)}}" stepKey="clickAddConditionButton"/> |
| 87 | + <selectOption selector="{{ProductsContentTypeForm.conditionsListAddTypeSelect(index)}}" userInput="{{conditionType.value}}" stepKey="selectConditionType"/> |
| 88 | + <waitForPageLoad stepKey="waitForConditionFieldsToLoad"/> |
| 89 | + <click selector="{{ProductsContentTypeForm.conditionsListConditionPlaceholder}}" stepKey="revealCategoryInput"/> |
| 90 | + <fillField selector="{{ProductsContentTypeForm.conditionsListConditionInput}}" userInput="{{conditionInput}}" stepKey="fillCategoryField"/> |
102 | 91 | </actionGroup>
|
103 |
| - <actionGroup name="addCategoryConditionViaConditionsCombinationToProducts"> |
| 92 | + <actionGroup name="addConditionsCombinationToProductsAndSetAggregateParameters"> |
104 | 93 | <arguments>
|
105 |
| - <argument name="page" defaultValue="ProductsContentTypeForm"/> |
106 |
| - <argument name="category" defaultValue="" type="string"/> |
107 | 94 | <argument name="aggregatorType" defaultValue="all" type="string"/>
|
108 | 95 | <argument name="booleanValueForAggregator" defaultValue="1" type="string"/>
|
109 |
| - <argument name="depth" defaultValue="2" type="string"/> |
| 96 | + <argument name="index" defaultValue="1" type="string"/> |
110 | 97 | </arguments>
|
111 |
| - <waitForElementVisible selector="{{page.conditionsList}}" stepKey="waitForConditionsToLoad"/> |
112 |
| - <click selector="{{page.conditionsListAddButton}}" stepKey="addCondition"/> |
113 |
| - <selectOption selector="{{page.conditionsListAddTypeSelect}}" userInput="Magento\CatalogWidget\Model\Rule\Condition\Combine" stepKey="selectCombineOption"/> |
114 |
| - <waitForLoadingMaskToDisappear stepKey="waitForConditionsCombinationTemplateToLoad"/> |
115 |
| - <click selector="{{page.conditionsCombinationAggregateSelector(depth)}}" stepKey="addAggregateType"/> |
116 |
| - <selectOption selector="{{page.conditionsCombinationAggregateSelectorSelect(depth)}}" userInput="{{aggregatorType}}" stepKey="selectAggregateType"/> |
117 |
| - <waitForLoadingMaskToDisappear stepKey="waitForAggregateTypeToLoad"/> |
118 |
| - <click selector="{{page.conditionsListText}}" stepKey="clearOptions"/> |
119 |
| - <click selector="{{page.conditionsCombinationAggregateBooleanSelector(depth)}}" stepKey="addBooleanAggregateType"/> |
120 |
| - <selectOption selector="{{page.conditionsCombinationAggregateBooleanSelectorSelect(depth)}}" userInput="{{booleanValueForAggregator}}" stepKey="selectBooleanAggregateType"/> |
121 |
| - <waitForLoadingMaskToDisappear stepKey="waitForBooleanAggregateTypeToLoad"/> |
122 |
| - <click selector="{{page.conditionsListText}}" stepKey="clearOptions2"/> |
123 |
| - <click selector="{{page.conditionsListAddButton}}" stepKey="addCategoryCondition"/> |
124 |
| - <selectOption selector="{{page.conditionsListAddTypeSelect}}" userInput="Magento\CatalogWidget\Model\Rule\Condition\Product|category_ids" stepKey="selectCategoryOption"/> |
125 |
| - <waitForLoadingMaskToDisappear stepKey="waitForCategoriesToLoad"/> |
126 |
| - <click selector="{{page.conditionsListConditionPlaceholder}}" stepKey="revealCategoryInput"/> |
127 |
| - <fillField selector="{{page.conditionsListConditionInput}}" userInput="{{category}}" stepKey="fillCategoryField"/> |
| 98 | + <comment userInput="addConditionsCombinationToProductsAndSetAggregateParameters" stepKey="comment"/> |
| 99 | + <waitForElementVisible selector="{{ProductsContentTypeForm.conditionsList}}" stepKey="waitForConditionsToLoad"/> |
| 100 | + <waitForElementVisible selector="{{ProductsContentTypeForm.conditionsListAddButton(index)}}" stepKey="waitForAddConditionButton"/> |
| 101 | + <click selector="{{ProductsContentTypeForm.conditionsListAddButton(index)}}" stepKey="clickAddConditionButton"/> |
| 102 | + <selectOption selector="{{ProductsContentTypeForm.conditionsListAddTypeSelect(index)}}" userInput="{{PageBuilderProductsConditionCombination.value}}" stepKey="selectCombinationOption"/> |
| 103 | + <waitForPageLoad stepKey="waitForConditionsCombinationTemplateToLoad"/> |
| 104 | + <click selector="{{ProductsContentTypeForm.conditionsCombinationAggregateSelector(index)}}" stepKey="clickAggregateType"/> |
| 105 | + <selectOption selector="{{ProductsContentTypeForm.conditionsCombinationAggregateSelectorSelect(index)}}" userInput="{{aggregatorType}}" stepKey="selectAggregateType"/> |
| 106 | + <waitForPageLoad stepKey="waitForAggregateTypeToLoad"/> |
| 107 | + <click selector="{{ProductsContentTypeForm.conditionsListText}}" stepKey="clearOptions"/> |
| 108 | + <click selector="{{ProductsContentTypeForm.conditionsCombinationAggregateBooleanSelector(index)}}" stepKey="clickAggregateTypeBoolean"/> |
| 109 | + <selectOption selector="{{ProductsContentTypeForm.conditionsCombinationAggregateBooleanSelectorSelect(index)}}" userInput="{{booleanValueForAggregator}}" stepKey="selectAggregateTypeBoolean"/> |
| 110 | + <waitForPageLoad stepKey="waitForAggregateTypeBooleanToLoad"/> |
| 111 | + <click selector="{{ProductsContentTypeForm.conditionsListText}}" stepKey="clearOptions2"/> |
128 | 112 | </actionGroup>
|
129 | 113 | </actionGroups>
|
0 commit comments