DisableKlarnaPaymentActionGroup.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. /**
  4. * This file is part of the Klarna KP module
  5. *
  6. * (c) Klarna Bank AB (publ)
  7. *
  8. * For the full copyright and license information, please view the NOTICE
  9. * and LICENSE files that were distributed with this source code.
  10. */
  11. -->
  12. <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  13. xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
  14. <actionGroup name="DisableKlarnaPayment">
  15. <!-- GoTo ConfigureKlarnaPayment fields -->
  16. <click stepKey="clickOnSTORES" selector="{{KpAdminMenuSection.stores}}"/>
  17. <waitForPageLoad stepKey="waitForConfiguration" time="2"/>
  18. <click stepKey="clickOnConfigurations" selector="{{KpStoresSubmenuSection.configuration}}" />
  19. <waitForPageLoad stepKey="waitForSales" time="2"/>
  20. <click stepKey="clickOnSales" selector="{{KpConfigurationListSection.sales}}" />
  21. <waitForPageLoad stepKey="waitForPaymentMethods" time="2"/>
  22. <click stepKey="clickOnPaymentMethods" selector="{{KpConfigurationListSection.salesPaymentMethods}}" />
  23. <waitForPageLoad stepKey="waitForConfigureButton" time="2"/>
  24. <click stepKey="clickOnConfigureButtonForKlarnaPayment" selector="{{KpConfigurationPaymentSection.configureButton}}" />
  25. <waitForPageLoad stepKey="KlarnaPaymentSettings" time="2"/>
  26. <!-- Fill Klarna Payment Setting Tab -->
  27. <click stepKey="openKpPaymentActiveSelect" selector="{{KpConfiguraionSection.kpPaymentActiveSelect}}"/>
  28. <click stepKey="chooseKpPaymentInActive" selector="{{KpConfiguraionSection.activeDisabled}}"/>
  29. <!-- Save Configuration -->
  30. <click stepKey="save" selector="{{KpConfiguraionSection.save}}"/>
  31. <waitForElementVisible selector="{{KpConfiguraionSection.successfulMessage}}" stepKey="waitForSuccessfullyConfigured" time="10"/>
  32. </actionGroup>
  33. </actionGroups>