Skip to content

Commit 0eb2b6b

Browse files
committed
MAGETWO-92005: Make "Other Payment Methods" section in Admin expanded by default
1 parent 4a61ed6 commit 0eb2b6b

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed

app/code/Magento/Paypal/etc/adminhtml/system.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
</group>
3333
<group id="other_payment_methods" translate="label" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="1">
3434
<label>Other Payment Methods:</label>
35+
<attribute type="expanded">1</attribute>
3536
<fieldset_css>paypal-top-section payments-other-header</fieldset_css>
3637
<frontend_model>\Magento\Config\Block\System\Config\Form\Fieldset</frontend_model>
3738
</group>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/PageObject.xsd">
9+
<page name="AdminConfigPaymentMethodsPage" url="admin/system_config/edit/section/payment/" area="admin" module="Magento_Config">
10+
<section name="OtherPaymentsConfigSection"/>
11+
</page>
12+
</pages>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
11+
<section name="OtherPaymentsConfigSection">
12+
<element name="expandedTab" type="button" selector="#payment_us_other_payment_methods-head.open"/>
13+
</section>
14+
</sections>
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+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
11+
<test name="AdminConfigPaymentsSectionState">
12+
<annotations>
13+
<description value="Other Payment Methods section in Admin expanded by default"/>
14+
<severity value="AVERAGE"/>
15+
<testCaseId value="MAGETWO-92043"/>
16+
</annotations>
17+
<after>
18+
<amOnPage url="admin/admin/auth/logout/" stepKey="amOnLogoutPage"/>
19+
</after>
20+
21+
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin1"/>
22+
<amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToConfigurationPage"/>
23+
<waitForPageLoad stepKey="waitForPageLoad1"/>
24+
<seeElement selector="{{OtherPaymentsConfigSection.expandedTab}}" stepKey="seeSectionExpanded"/>
25+
</test>
26+
</tests>

0 commit comments

Comments
 (0)