Skip to content

Commit e872fc5

Browse files
shanthiManjusha.S
authored andcommitted
MC-36852 : Misleading message for guest customer on checkout
1 parent 5ab2114 commit e872fc5

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10+
<test name="AdminCreateTwoSimpleProductTest">
11+
<annotations>
12+
<stories value="Check Misleading message for guest customer on checkout"/>
13+
<title value="Admin should be able to check Misleading message for guest customer on checkout"/>
14+
<description value="Admin should be able to check Misleading message for guest customer on checkout"/>
15+
<testCaseId value="MC-36852"/>
16+
<group value="product"/>
17+
</annotations>
18+
<before>
19+
<createData entity="ApiCategory" stepKey="createCategory"/>
20+
<createData entity="_defaultProduct" stepKey="createSimpleProduct">
21+
<requiredEntity createDataKey="createCategory"/>
22+
</createData>
23+
<createData entity="SimpleProduct" stepKey="createSimpleProduct2">
24+
<requiredEntity createDataKey="createCategory"/>
25+
</createData>
26+
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
27+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin1"/>
28+
</before>
29+
<after>
30+
<deleteData createDataKey="createCategory" stepKey="deletePreReqCategory"/>
31+
<actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteProduct">
32+
<argument name="sku" value="{{_defaultProduct.sku}}"/>
33+
</actionGroup>
34+
<actionGroup ref="AdminDeleteCustomerActionGroup" stepKey="deleteCustomer">
35+
<argument name="customerEmail" value="Simple_US_Customer.email"/>
36+
</actionGroup>
37+
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearFilter"/>
38+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutOfAdmin"/>
39+
</after>
40+
41+
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStoreFront"/>
42+
<waitForPageLoad stepKey="waitForProductPage"/>
43+
<!--<click selector="{{NewProductPageSection.productName}}" stepKey="clickOnProduct"/>-->
44+
<actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addSimpleProductToCart">
45+
<argument name="product" value="$createSimpleProduct$"/>
46+
</actionGroup>
47+
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart"/>
48+
<actionGroup ref="FillGuestCheckoutShippingAddressFormActionGroup" stepKey="goToShippingAndFillDetails"/>
49+
<selectOption selector="{{CheckoutCartSummarySection.stateProvince}}" userInput="Texas" stepKey="fillState2"/>
50+
<waitForPageLoad stepKey="waitForProductPage1"/>
51+
<actionGroup ref="StorefrontSetShippingMethodActionGroup" stepKey="setShippingMethodFreeShipping">
52+
<argument name="shippingMethodName" value="Flat Rate"/>
53+
</actionGroup>
54+
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="goToCheckoutReview"/>
55+
<actionGroup ref="StorefrontClickOnHeaderLogoActionGroup" stepKey="clickOnStorefrontHeaderLogo"/>
56+
<actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addSimpleProductTwoToCart">
57+
<argument name="product" value="$createSimpleProduct2$"/>
58+
</actionGroup>
59+
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart2"/>
60+
<actionGroup ref="AssertStorefrontEmailNoteMessageOnCheckoutActionGroup" stepKey="assertEmailNoteMessage"/>
61+
<waitForPageLoad stepKey="waitForProductPage2"/>
62+
</test>
63+
</tests>

0 commit comments

Comments
 (0)