|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | + |
| 9 | +<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> |
| 11 | + <actionGroup name="AdminCreateCatalogProductsListWidgetActionGroup" extends="AdminCreateWidgetActionGroup"> |
| 12 | + <annotations> |
| 13 | + <description>EXTENDS: AdminCreateWidgetActionGroup. Creates a Product List Widget. Validates that the Success Message is present and correct.</description> |
| 14 | + </annotations> |
| 15 | + <arguments> |
| 16 | + <argument name="title" defaultValue="" type="string"/> |
| 17 | + <argument name="displayPageControl" defaultValue="0" type="string"/> |
| 18 | + <argument name="numberOfProductsToDisplay" defaultValue="10" type="string"/> |
| 19 | + <argument name="cacheLifetime" defaultValue="" type="string"/> |
| 20 | + <argument name="condition" defaultValue="SKU" type="string"/> |
| 21 | + <argument name="conditionsOperator" defaultValue="is one of" type="string"/> |
| 22 | + <argument name="conditionParameter" defaultValue="" type="string"/> |
| 23 | + </arguments> |
| 24 | + <fillField selector="{{AdminNewWidgetSection.title}}" userInput="{{title}}" stepKey="fillTitleWidgetOption"/> |
| 25 | + <selectOption selector="{{AdminNewWidgetSection.displayPageControl}}" userInput="{{displayPageControl}}" stepKey="selectDisplayPageControl"/> |
| 26 | + <fillField selector="{{AdminNewWidgetSection.numberOfProductsToDisplay}}" userInput="{{numberOfProductsToDisplay}}" stepKey="fillNumberOfProductsToDisplay"/> |
| 27 | + <fillField selector="{{AdminNewWidgetSection.cacheLifetime}}" userInput="{{cacheLifetime}}" stepKey="fillCacheLifetime"/> |
| 28 | + <click selector="{{AdminNewWidgetSection.addNewCondition}}" stepKey="clickAddNewCondition"/> |
| 29 | + <selectOption selector="{{AdminNewWidgetSection.selectCondition}}" userInput="{{condition}}" stepKey="selectCondition"/> |
| 30 | + <waitForPageLoad stepKey="waitForConditionsOperator"/> |
| 31 | + <click selector="{{AdminNewWidgetSection.conditionOperator}}" stepKey="clickConditionsOperator"/> |
| 32 | + <selectOption selector="{{AdminNewWidgetSection.selectOperator}}" userInput="{{conditionsOperator}}" stepKey="selectConditionsOperator"/> |
| 33 | + <click selector="{{AdminNewWidgetSection.ruleParameter}}" stepKey="clickConditionParameter"/> |
| 34 | + <fillField selector="{{AdminNewWidgetSection.setRuleParameter}}" userInput="{{conditionParameter}}" stepKey="fillConditionParameter"/> |
| 35 | + <click selector="{{AdminNewWidgetSection.applyParameter}}" stepKey="clickApplyCondition"/> |
| 36 | + <click selector="{{AdminMainActionsSection.save}}" stepKey="clickSaveWidget"/> |
| 37 | + <waitForPageLoad stepKey="waitForSave"/> |
| 38 | + <waitForText selector="{{AdminMessagesSection.success}}" userInput="The widget instance has been saved" stepKey="waitForSuccess"/> |
| 39 | + </actionGroup> |
| 40 | +</actionGroups> |
0 commit comments