Skip to content

Commit 9c08963

Browse files
authored
ACQE-6733 | [AC-4595] Verify that Terms and Conditions is presented on Storefront for non Main Website
1 parent 146a97b commit 9c08963

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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>

0 commit comments

Comments
 (0)