Skip to content

Commit 2bc9e08

Browse files
ENGCOM-6355: MFTF: Extract Action Groups to separate files - magento/module-variable #25792
2 parents ac80b08 + e57def7 commit 2bc9e08

File tree

2 files changed

+26
-16
lines changed

2 files changed

+26
-16
lines changed

app/code/Magento/Variable/Test/Mftf/ActionGroup/CreateCustomVariableActionGroup.xml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,4 @@
2121
<fillField selector="{{CustomVariableSection.variablePlain}}" userInput="{{customVariable.plain}}" stepKey="fillVariablePlain"/>
2222
<click selector="{{CustomVariableSection.saveCustomVariable}}" stepKey="clickSaveVariable"/>
2323
</actionGroup>
24-
25-
<actionGroup name="DeleteCustomVariableActionGroup">
26-
<annotations>
27-
<description>Goes to the Custom Variable grid page. Deletes the Custom Variable. PLEASE NOTE: The Custom Variable that is deleted is Hardcoded using 'customVariable'.</description>
28-
</annotations>
29-
30-
<amOnPage url="admin/admin/system_variable/" stepKey="goToVarialeGrid"/>
31-
<waitForPageLoad stepKey="waitForPageLoad1"/>
32-
<click selector="{{CustomVariableSection.GridCustomVariableCode(customVariable.code)}}" stepKey="goToCustomVariableEditPage"/>
33-
<waitForPageLoad stepKey="waitForPageLoad2"/>
34-
<waitForElementVisible selector="{{CustomVariableSection.delete}}" stepKey="waitForDeleteBtn"/>
35-
<click selector="{{CustomVariableSection.delete}}" stepKey="deleteCustomVariable"/>
36-
<waitForText userInput="Are you sure you want to do this?" stepKey="waitForText"/>
37-
<click selector="{{CustomVariableSection.confirmDelete}}" stepKey="confirmDelete"/>
38-
<waitForPageLoad stepKey="waitForPageLoad3"/>
39-
</actionGroup>
4024
</actionGroups>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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="DeleteCustomVariableActionGroup">
12+
<annotations>
13+
<description>Goes to the Custom Variable grid page. Deletes the Custom Variable. PLEASE NOTE: The Custom Variable that is deleted is Hardcoded using 'customVariable'.</description>
14+
</annotations>
15+
16+
<amOnPage url="admin/admin/system_variable/" stepKey="goToVarialeGrid"/>
17+
<waitForPageLoad stepKey="waitForPageLoad1"/>
18+
<click selector="{{CustomVariableSection.GridCustomVariableCode(customVariable.code)}}" stepKey="goToCustomVariableEditPage"/>
19+
<waitForPageLoad stepKey="waitForPageLoad2"/>
20+
<waitForElementVisible selector="{{CustomVariableSection.delete}}" stepKey="waitForDeleteBtn"/>
21+
<click selector="{{CustomVariableSection.delete}}" stepKey="deleteCustomVariable"/>
22+
<waitForText userInput="Are you sure you want to do this?" stepKey="waitForText"/>
23+
<click selector="{{CustomVariableSection.confirmDelete}}" stepKey="confirmDelete"/>
24+
<waitForPageLoad stepKey="waitForPageLoad3"/>
25+
</actionGroup>
26+
</actionGroups>

0 commit comments

Comments
 (0)