Skip to content

Commit 0580614

Browse files
committed
MC-3065: Automate MFTF for MC-1364
Added section and selectors for configuration page
1 parent 48866c9 commit 0580614

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

app/code/Magento/Config/Test/Mftf/Page/AdminConfigPage.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@
1212
<page name="AdminContentManagementPage" url="admin/system_config/edit/section/cms/" area="admin" module="Magento_Config">
1313
<section name="ContentManagementSection"/>
1414
</page>
15+
<page name="CatalogConfigPage" url="admin/system_config/edit/section/catalog/" area="admin" module="Magento_Config">
16+
<section name="ContentManagementSection"/>
17+
</page>
1518
</pages>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
11+
<section name="CatalogSection">
12+
<element name="storefront" type="select" selector="#catalog_frontend-head"/>
13+
<element name="CheckIfTabExpand" type="button" selector="#catalog_frontend-head:not(.open)"/>
14+
</section>
15+
</sections>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
11+
<test name="VerifyAllowDynamicMediaURLsSettingIsRemoved">
12+
<annotations>
13+
<features value="Backend"/>
14+
<stories value="Dynamic Media URL"/>
15+
<title value="Verify that Allow Dynamic Media URLs setting is removed from configuration page"/>
16+
<description value="Verify that Allow Dynamic Media URLs setting is removed from configuration page"/>
17+
<severity value="CRITICAL"/>
18+
<useCaseId value="MC-1364"/>
19+
<testCaseId value="MC-3178"/>
20+
<group value="alo"/>
21+
</annotations>
22+
<before>
23+
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
24+
</before>
25+
<after>
26+
<actionGroup ref="logout" stepKey="logout"/>
27+
</after>
28+
<amOnPage url="{{CatalogConfigPage.url}}" stepKey="navigateToConfigurationPage" />
29+
<waitForPageLoad stepKey="waitForPageLoad"/>
30+
<conditionalClick stepKey="expandStorefrontTab" selector="{{CatalogSection.storefront}}" dependentSelector="{{CatalogSection.CheckIfTabExpand}}" visible="true" />
31+
<dontSee stepKey="dontSeeDynamicMediaURLsSetting" userInput="Allow Dynamic Media URLs"/>
32+
</test>
33+
</tests>

0 commit comments

Comments
 (0)