File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
app/code/Magento/CheckoutAgreements/Test/Mftf/ActionGroup Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
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
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AssertStorefrontTermInCheckoutActionGroup" >
12
+ <arguments >
13
+ <argument name =" termCheckboxText" type =" string" />
14
+ </arguments >
15
+ <!-- Check if agreement is present on checkout and select it-->
16
+ <scrollTo selector =" .checkout-agreements-block" stepKey =" scrollToCheckoutAgreementBlock" />
17
+ <click selector =" .checkout-agreements-block" stepKey =" waitForCheckoutAgreementBlockToBeClickable" />
18
+ <waitForText selector =" {{StorefrontCheckoutAgreementsSection.checkoutAgreementButton}}" userInput =" {{termCheckboxText}}" stepKey =" seeTermInCheckout" />
19
+ <waitForElementClickable selector =" {{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckbox}}" stepKey =" waitForCheckAgreementToBeClickable" />
20
+ <selectOption selector =" {{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckboxInput}}" userInput =" {{termCheckboxText}}" stepKey =" checkAgreement" />
21
+
22
+ <!-- Checkout select Check/Money Order payment-->
23
+ <waitForPageLoad stepKey =" waitForPaymentPageRendering" />
24
+ <waitForPageLoad stepKey =" waitForPaymentRendering" />
25
+ <conditionalClick selector =" {{StorefrontCheckoutPaymentMethodSection.checkPaymentMethodByName('Check / Money order')}}" dependentSelector =" {{StorefrontCheckoutPaymentMethodSection.checkPaymentMethodByName('Check / Money order')}}" visible =" true" stepKey =" selectCheckmoPaymentMethod" />
26
+ <waitForPageLoad stepKey =" waitForLoadingMaskAfterPaymentMethodSelection" />
27
+
28
+ <!-- Click Place Order button-->
29
+ <click selector =" {{CheckoutPaymentSection.placeOrder}}" stepKey =" clickPlaceOrder" />
30
+ <waitForPageLoad stepKey =" waitForOrderPlaced" />
31
+ </actionGroup >
32
+ </actionGroups >
You can’t perform that action at this time.
0 commit comments