Skip to content

Commit eb60f82

Browse files
committed
Code refactoring
1 parent 63cdff5 commit eb60f82

File tree

6 files changed

+5
-20
lines changed

6 files changed

+5
-20
lines changed

app/code/Magento/Config/Test/Mftf/ActionGroup/AdminExpandSecurityTabActionGroup.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,3 @@
1212
<conditionalClick selector="{{AdminSection.SecurityTab}}" dependentSelector="{{AdminSection.CheckIfTabExpand}}" visible="true" stepKey="openSecurityTab"/>
1313
</actionGroup>
1414
</actionGroups>
15-
16-

app/code/Magento/Config/Test/Mftf/ActionGroup/AdminOpenConfigAdminPageActionGroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1010
<actionGroup name="AdminOpenConfigAdminPageActionGroup">
11-
<amOnPage url="{{AdminConfigAdminPage.url}}" stepKey="goToAdminSectionPage"/>
11+
<amOnPage url="{{AdminConfigAdminPage.url}}" stepKey="goToConfigAdminSectionPage"/>
1212
<waitForPageLoad stepKey="waitForPageLoad"/>
1313
</actionGroup>
14-
</actionGroups>
14+
</actionGroups>

app/code/Magento/Config/Test/Mftf/ActionGroup/AdminSetMaximumLoginFailuresToLockoutAccountActionGroup.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@
1717
<seeInField selector="{{AdminSection.MaximumLoginFailures}}" userInput="{{qty}}" stepKey="seeNewValueInField"/>
1818
</actionGroup>
1919
</actionGroups>
20-

app/code/Magento/User/Test/Mftf/Data/UserData.xml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -127,20 +127,7 @@
127127
</entity>
128128
<entity name="adminUserIncorrectPassword" type="user">
129129
<data key="username">admin_user_with_correct_password</data>
130-
<data key="firstname">John</data>
131-
<data key="lastname">Doe</data>
132-
<data key="email" unique="prefix">[email protected]</data>
133130
<data key="password">123123123q</data>
134-
<data key="password_confirmation">123123123q</data>
135-
<data key="interface_local">en_US</data>
136-
<data key="interface_local_label">English (United States)</data>
137-
<data key="is_active">true</data>
138-
<data key="is_active_label">Active</data>
139-
<data key="current_password">{{_ENV.MAGENTO_ADMIN_PASSWORD}}</data>
140-
<data key="role">Administrators</data>
141-
<array key="roles">
142-
<item>1</item>
143-
</array>
144131
</entity>
145132
<!--
146133
Since User delete action is performed via POST request we created this entity to be able to delete it.

app/code/Magento/User/Test/Mftf/Test/LockAdminUserEntityTest.xml renamed to app/code/Magento/User/Test/Mftf/Test/AdminLockAdminUserEntityTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<actionGroup ref="AdminClickSaveButtonOnUserFormActionGroup" stepKey="saveNewUser"/>
3434

3535
<!--Configure 'Maximum Login Failures to Lockout Account'-->
36-
<actionGroup ref="AdminOpenConfigAdminPageActionGroup" stepKey="goToAdminSectionPage"/>
36+
<actionGroup ref="AdminOpenConfigAdminPageActionGroup" stepKey="goToConfigAdminSectionPage"/>
3737
<actionGroup ref="AdminExpandSecurityTabActionGroup" stepKey="openSecurityTab"/>
3838
<actionGroup ref="AdminSetMaximumLoginFailuresToLockoutAccountActionGroup" stepKey="setMaximumLoginFailures"/>
3939
<actionGroup ref="AdminSaveConfigActionGroup" stepKey="saveChanges"/>
@@ -68,4 +68,4 @@
6868
</actionGroup>
6969

7070
</test>
71-
</tests>
71+
</tests>

dev/tests/functional/tests/app/Magento/User/Test/TestCase/LockAdminUserEntityTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<data name="incorrectPassword" xsi:type="string">honey boo boo</data>
2525
<data name="attempts" xsi:type="string">7</data>
2626
<constraint name="Magento\User\Test\Constraint\AssertUserFailedLoginMessage" />
27+
<data name="tag" xsi:type="string">mftf_migrated:yes</data>
2728
</variation>
2829
</testCase>
2930
</config>

0 commit comments

Comments
 (0)