Skip to content

Commit 983e5fb

Browse files
committed
Code refactoring of AdminUpdateUserRoleTest
1 parent e3a4823 commit 983e5fb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/code/Magento/User/Test/Mftf/Section/AdminDeleteRoleSection.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<section name="AdminDeleteRoleSection">
1212
<element name="theRole" selector="//td[contains(text(), 'Role')]" type="button"/>
1313
<element name="salesRole" selector="//td[contains(text(), 'Sales')]" type="button"/>
14-
<element name="userRole" selector="//td[contains(text(), '{{userRole}}')]" type="button" parameterized="true"/>
1514
<element name="current_pass" type="button" selector="#current_password"/>
1615
<element name="delete" selector="//button/span[contains(text(), 'Delete Role')]" type="button"/>
1716
<element name="confirm" selector="//*[@class='action-primary action-accept']" type="button"/>

app/code/Magento/User/Test/Mftf/Test/AdminUpdateUserRoleTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<annotations>
1313
<features value="User"/>
1414
<title value="Admin user role update"/>
15-
<description value="Admin user with full access role should be able to change the role to custom one with restricted permission"/>
15+
<description value="Change full access role for admin user to custom one with restricted permission (Sales)"/>
1616
<group value="user"/>
1717
<group value="mtf_migrated"/>
1818
</annotations>
@@ -64,7 +64,7 @@
6464
<actionGroup ref="logout" stepKey="logoutAsSaleRoleUser"/>
6565
<actionGroup ref="LoginAsAdmin" stepKey="loginAsDefaultAdminUser"/>
6666
<actionGroup ref="AdminDeleteCustomUserActionGroup" stepKey="deleteNewUser">
67-
<argument name="user" value="NewAdminUser"/>
67+
<argument name="user" value="NewAdminUser"/>
6868
</actionGroup>
6969

7070
<!--Delete Role-->

0 commit comments

Comments
 (0)