| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?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="MakePaymentWithPayOverTime">
- <wait stepKey="paymentWait1" time="15"/>
- <!-- Place Order with Klarna Pay Later -->
- <click selector="{{KpGuestCheckoutShippingSection.firstShippingMethod}}" stepKey="kpSelectFirstShippingMethod"/>
- <wait stepKey="paymentWait2" time="15"/>
- <waitForElement selector="{{KpGuestCheckoutShippingSection.next}}" time="30" stepKey="kpWaitForNextButton"/>
- <click selector="{{KpGuestCheckoutShippingSection.next}}" stepKey="kpClickNext"/>
- <wait stepKey="paymentWait3" time="15"/>
- <!-- Select a Klarna Payment method -->
- <waitForElement selector="#klarna_pay_over_time" time="30" stepKey="kpWaitForPayOverTime"/>
- <click selector="#klarna_pay_over_time" stepKey="kpSelectPaymentMethod"/>
- <wait stepKey="paymentWait4" time="5"/>
- <waitForElement selector="{{KpGuestCheckoutPaymentSection.placeOrder}}" time="30"
- stepKey="kpWaitForPlaceOrderButton"/>
- <!-- Add any additional steps here, eg select terms, etc... -->
- <conditionalClick selector="{{KpGuestCheckoutPaymentSection.cartItemsArea}}"
- dependentSelector="{{KpGuestCheckoutPaymentSection.cartItemsAreaActive}}" visible="false"
- stepKey="kpExposeMiniCart"/>
- <see selector="{{KpGuestCheckoutPaymentSection.cartItems}}" userInput="{{_defaultProduct.name}}"
- stepKey="kpSeeProductInCart"/>
- <click selector=".payment-method._active button.action.primary.checkout" stepKey="kpClickPlaceOrder"/>
- <wait stepKey="paymentWait5" time="15"/>
- </actionGroup>
- </actionGroups>
|