|
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"/> |
| 79 | + <argument name="conditionType" defaultValue="PageBuilderProductsConditionCategory"/> |
| 80 | + <argument name="conditionInput" defaultValue="1" type="string"/> |
| 81 | + <argument name="index" defaultValue="1" type="string"/> |
| 82 | + </arguments> |
| 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"/> |
| 91 | + </actionGroup> |
| 92 | + <actionGroup name="addConditionsCombinationToProductsAndSetAggregateParameters"> |
| 93 | + <arguments> |
| 94 | + <argument name="aggregatorType" defaultValue="all" type="string"/> |
| 95 | + <argument name="booleanValueForAggregator" defaultValue="1" type="string"/> |
| 96 | + <argument name="index" defaultValue="1" type="string"/> |
82 | 97 | </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"/> |
| 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"/> |
89 | 112 | </actionGroup>
|
90 | 113 | </actionGroups>
|
0 commit comments