Skip to content

Commit 224734c

Browse files
committed
Reverting the ActionGroup for keeping the Backward Compatibility
1 parent 5eb7c1d commit 224734c

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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

Comments
 (0)