| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- /**
- * This file is part of the Klarna KP module
- *
- * (c) Klarna Bank AB (publ)
- *
- * For the full copyright and license information, please view the NOTICE
- * and LICENSE files that were distributed with this source code.
- */
- -->
- <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
- <actionGroup name="ConfigureKlarnaNA">
- <!-- GoTo Config klarna Payment fields -->
- <click stepKey="clickOnSTORES" selector="{{KpAdminMenuSection.stores}}"/>
- <waitForPageLoad stepKey="waitForConfiguration" time="2"/>
- <click stepKey="clickOnConfigurations" selector="{{KpStoresSubmenuSection.configuration}}" />
- <waitForPageLoad stepKey="waitForSales" time="2"/>
- <click stepKey="clickOnSales" selector="{{KpConfigurationListSection.sales}}" />
- <waitForPageLoad stepKey="waitForPaymentMethods" time="2"/>
- <click stepKey="clickOnPaymentMethods" selector="{{KpConfigurationListSection.salesPaymentMethods}}" />
- <waitForPageLoad stepKey="waitForConfigureButton" time="2"/>
- <click stepKey="clickOnConfigureButtonForKlarnaPayment" selector="{{KpConfigurationPaymentSection.configureButton}}" />
- <waitForPageLoad stepKey="KlarnaPaymentSettings" time="2"/>
- <!-- Fill Klarna Payment Api Setting Tab -->
- <click stepKey="clickOnConfigureTabForKlarnaPaymentApi" selector="{{KpConfiguraionSection.apiTab}}" />
- <waitForPageLoad stepKey="KlarnaPaymentApiSettings" time="2"/>
- <click stepKey="openApiVersionSelect" selector="{{KpConfiguraionSection.apiVersionSelect}}"/>
- <click stepKey="chooseEuApi" selector="{{KpConfiguraionSection.kpApiNa}}"/>
- <fillField stepKey="fillMerchantEid" selector="{{KpConfiguraionSection.merchantEid}}" userInput="{{_CREDS.klarna_us_merchant_id}}"/>
- <fillField stepKey="fillMerchantPwd" selector="{{KpConfiguraionSection.merchantPwd}}" userInput="{{_CREDS.klarna_us_shared_secret}}"/>
- <click stepKey="openApiTestMode" selector="{{KpConfiguraionSection.apiTestModeSelect}}"/>
- <click stepKey="chooseTestModeEnabled" selector="{{KpConfiguraionSection.testModeEnable}}"/>
- <click stepKey="openApiDebugMode" selector="{{KpConfiguraionSection.apiDebugModeSelect}}"/>
- <click stepKey="chooseDebugModeEnabled" selector="{{KpConfiguraionSection.debugModeEnable}}"/>
- <!-- Fill Klarna Payment Setting Tab -->
- <click stepKey="openKpPaymentActiveSelect" selector="{{KpConfiguraionSection.kpPaymentActiveSelect}}"/>
- <click stepKey="chooseKpPaymentActive" selector="{{KpConfiguraionSection.activeEnabled}}"/>
- <click stepKey="openKpPaymentAppliedCountriesSelect" selector="{{KpConfiguraionSection.kpPaymentAllowedCountriesSelect}}"/>
- <click stepKey="chooseAllAllowedCountries" selector="{{KpConfiguraionSection.allAllowedCountries}}"/>
- <!-- Save Configuration -->
- <click stepKey="save" selector="{{KpConfiguraionSection.save}}"/>
- <waitForElementVisible selector="{{KpConfiguraionSection.successfulMessage}}" stepKey="waitForSuccessfullyConfigured" time="10"/>
- </actionGroup>
- </actionGroups>
|