Skip to content

Commit 2d4a337

Browse files
committed
ACQE-8956: To check max session size in admin.
- Updated features, group value and removed created entity.
1 parent 9e27604 commit 2d4a337

File tree

4 files changed

+11
-21
lines changed

4 files changed

+11
-21
lines changed

app/code/Magento/Customer/Test/Mftf/Data/AdminSystemSecurityData.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.

app/code/Magento/Customer/Test/Mftf/ActionGroup/AdminSessionMaxSizeCliActionGroup.xml renamed to app/code/Magento/Security/Test/Mftf/ActionGroup/AdminSessionMaxSizeCliActionGroup.xml

File renamed without changes.

app/code/Magento/Customer/Test/Mftf/Section/AdminSystemSecurityConfigSection.xml renamed to app/code/Magento/Security/Test/Mftf/Section/AdminSystemSecurityConfigSection.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/sectionSchema.xsd">
1111
<section name="AdminSystemSecurityConfigSection">
1212
<element name="maxSessionSizeAdminInheritSystemValue" type="checkbox" selector="#system_security_max_session_size_admin_inherit"/>
13-
</section>
13+
<element name="securityGroupHeader" type="button" selector="#system_security-head"/>
14+
=</section>
1415
</sections>
1516

app/code/Magento/Customer/Test/Mftf/Test/AdminMaxSessionSizeTest.xml renamed to app/code/Magento/Security/Test/Mftf/Test/AdminMaxSessionSizeTest.xml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
1111
<test name="AdminMaxSessionSizeTest">
1212
<annotations>
13-
<features value="Customer"/>
13+
<features value="Security"/>
1414
<stories value="Validate max session size in admin."/>
1515
<title value="To check max session size in admin."/>
1616
<description value="Set admin max session size to 0 and verify admin and storefront logins."/>
1717
<testCaseId value="AC-3093"/>
1818
<severity value="MAJOR"/>
19-
<group value="customer"/>
19+
<group value="security"/>
2020
</annotations>
2121
<before>
2222
<!-- Precondition 1: Create Customer and login to storefront-->
@@ -30,14 +30,17 @@
3030
</actionGroup>
3131
</before>
3232
<after>
33-
<!-- Logout from storefront, delete customer, restore default max session size, check system value and logout from admin-->
33+
<!-- Logout from storefront, delete customer, restore default max session size, select system value and logout from admin-->
3434
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutFromStorefront"/>
3535
<deleteData createDataKey="customer" stepKey="deleteCustomer"/>
3636
<actionGroup ref="AdminSessionMaxSizeCliActionGroup" stepKey="restoreDefaultMaxSessionSize"/>
37-
<actionGroup ref="AdminNavigateToConfigurationSystemSectionActionGroup" stepKey="navigateToAdminSessionMaxSize">
38-
<argument name="section" value="{{AdminSessionMaxSizeUrl.urlName}}"/>
39-
</actionGroup>
37+
<actionGroup ref="AdminNavigateToConfigurationSystemSectionActionGroup" stepKey="navigateToSystem"/>
38+
<waitForElementVisible selector="{{AdminSystemSecurityConfigSection.securityGroupHeader}}" stepKey="waitSecurityGroupHeader"/>
39+
<click selector="{{AdminSystemSecurityConfigSection.securityGroupHeader}}" stepKey="expandSecurityGroup"/>
40+
<waitForElementVisible selector="{{AdminSystemSecurityConfigSection.maxSessionSizeAdminInheritSystemValue}}" stepKey="waitToUseSystemValue"/>
4041
<checkOption selector="{{AdminSystemSecurityConfigSection.maxSessionSizeAdminInheritSystemValue}}" stepKey="checkUseSystemValue"/>
42+
<waitForElementVisible selector="{{AdminSystemSecurityConfigSection.securityGroupHeader}}" stepKey="waitSecurityGroupHeaderToClose"/>
43+
<click selector="{{AdminSystemSecurityConfigSection.securityGroupHeader}}" stepKey="clickToSecurityGroupToClose"/>
4144
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
4245
</after>
4346
<!-- Step 3: Logout and login to admin and verify User is able to login successfully -->

0 commit comments

Comments
 (0)