Skip to content

Commit 99f958d

Browse files
Implemented test coverage
1 parent 614ada9 commit 99f958d

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="StorefrontGuestCheckoutWithSameShippingAndBillingAddressEnabledCheckboxTest">
12+
<annotations>
13+
<features value="Checkout"/>
14+
<stories value="My billing and shipping address are same checkbox should be checked by default"/>
15+
<title value="My billing and shipping address are same checkbox should be checked by default"/>
16+
<description value="Check that My billing and shipping address are same checkbox should be checked by default"/>
17+
<severity value="AVERAGE"/>
18+
<testCaseId value="AC-8596"/>
19+
<group value="checkout"/>
20+
</annotations>
21+
22+
<before>
23+
<magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/>
24+
<createData entity="SimpleProduct2" stepKey="createProduct"/>
25+
</before>
26+
27+
<after>
28+
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
29+
</after>
30+
31+
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openProductPage">
32+
<argument name="productUrl" value="$createProduct.custom_attributes[url_key]$"/>
33+
</actionGroup>
34+
<actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage">
35+
<argument name="productName" value="$createProduct.name$"/>
36+
</actionGroup>
37+
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart"/>
38+
<actionGroup ref="GuestCheckoutFillNewShippingAddressActionGroup" stepKey="fillShippingSectionAsGuest">
39+
<argument name="customer" value="CustomerEntityOne"/>
40+
<argument name="address" value="CustomerAddressSimple"/>
41+
</actionGroup>
42+
<waitForElementVisible selector="{{CheckoutShippingSection.next}}" time="30" stepKey="waitForNextButton"/>
43+
<click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext"/>
44+
<waitForPageLoad stepKey="waitForPaymentLoading"/>
45+
<waitForElementVisible selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30" stepKey="waitForPaymentSectionLoaded"/>
46+
<seeCheckboxIsChecked selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="shippingAndBillingAddressIsSameChecked"/>
47+
</test>
48+
</tests>

0 commit comments

Comments
 (0)