|
| 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="CreateCustomVariableActionGroup"> |
| 12 | + <amOnPage url="admin/admin/system_variable/new/" stepKey="goToNewCustomVarialePage" /> |
| 13 | + <waitForPageLoad stepKey="waitForPageLoad" /> |
| 14 | + <fillField selector="{{CustomVariableSection.variableCode}}" userInput="{{customVariable.code}}" stepKey="fillVariableCode" /> |
| 15 | + <fillField selector="{{CustomVariableSection.variableName}}" userInput="{{customVariable.name}}" stepKey="fillVariableName" /> |
| 16 | + <fillField selector="{{CustomVariableSection.variableHTML}}" userInput="{{customVariable.html}}" stepKey="fillVariableHtml" /> |
| 17 | + <fillField selector="{{CustomVariableSection.variablePlain}}" userInput="{{customVariable.plain}}" stepKey="fillVariablePlain" /> |
| 18 | + <click selector="{{CustomVariableSection.saveCustomVariable}}" stepKey="clickSaveVariable"/> |
| 19 | +</actionGroup> |
| 20 | +<actionGroup name="DeleteCustomVariableActionGroup"> |
| 21 | + <amOnPage url="admin/admin/system_variable/" stepKey="goToVarialeGrid" /> |
| 22 | + <waitForPageLoad stepKey="waitForPageLoad1" /> |
| 23 | + <click selector="{{CustomVariableSection.GridCustomVariableCode(customVariable.code)}}" stepKey="goToCustomVariableEditPage" /> |
| 24 | + <waitForPageLoad stepKey="waitForPageLoad2" /> |
| 25 | + <waitForElementVisible selector="{{CustomVariableSection.delete}}" stepKey="waitForDeleteBtn" /> |
| 26 | + <click selector="{{CustomVariableSection.delete}}" stepKey="deleteCustomVariable" /> |
| 27 | + <waitForText userInput="Are you sure you want to do this?" stepKey="waitForText" /> |
| 28 | + <click selector="{{CustomVariableSection.confirmDelete}}" stepKey="confirmDelete" /> |
| 29 | + <waitForPageLoad stepKey="waitForPageLoad3" /> |
| 30 | +</actionGroup> |
| 31 | +</actionGroups> |
0 commit comments