|
16 | 16 | <testCaseId value="MC-26600"/>
|
17 | 17 | <severity value="MAJOR"/>
|
18 | 18 | </annotations>
|
19 |
| - |
20 | 19 | <before>
|
21 |
| - |
22 | 20 | <!-- Create default category -->
|
23 | 21 | <createData entity="_defaultCategory" stepKey="createCategory"/>
|
24 |
| - |
25 | 22 | <!-- Create virtual product -->
|
26 | 23 | <createData entity="VirtualProduct" stepKey="createVirtualProduct">
|
27 | 24 | <requiredEntity createDataKey="createCategory"/>
|
28 | 25 | </createData>
|
29 |
| - |
30 | 26 | <!-- Create simple product -->
|
31 | 27 | <createData entity="SimpleProduct" stepKey="createSimpleProduct">
|
32 | 28 | <requiredEntity createDataKey="createCategory"/>
|
33 | 29 | </createData>
|
34 |
| - |
35 | 30 | <!-- Assign virtual product to default category -->
|
36 | 31 | <createData entity="AssignProductToCategory" stepKey="assignCategoryToVirtualProduct">
|
37 | 32 | <requiredEntity createDataKey="createCategory"/>
|
38 | 33 | <requiredEntity createDataKey="createVirtualProduct"/>
|
39 | 34 | </createData>
|
40 |
| - |
41 | 35 | <!-- Assign Simple product to default category -->
|
42 | 36 | <createData entity="AssignProductToCategory" stepKey="assignCategoryToSimpleProduct">
|
43 | 37 | <requiredEntity createDataKey="createCategory"/>
|
44 | 38 | <requiredEntity createDataKey="createSimpleProduct"/>
|
45 | 39 | </createData>
|
46 |
| - |
47 | 40 | <!-- Create customer -->
|
48 | 41 | <createData entity="Simple_US_Customer_CA" stepKey="createCustomer"/>
|
49 | 42 | </before>
|
|
54 | 47 | <deleteData createDataKey="createCategory" stepKey="deleteSimpleCategory"/>
|
55 | 48 | <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
|
56 | 49 | </after>
|
57 |
| - |
58 | 50 | <!-- Go to Storefront as Customer from preconditions -->
|
59 | 51 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="storefrontCustomerLogin">
|
60 | 52 | <argument name="Customer" value="$$createCustomer$$"/>
|
61 | 53 | </actionGroup>
|
62 |
| - |
63 | 54 | <!-- Customer added Virtual Product to Cart -->
|
64 | 55 | <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addVirtualProductToCart">
|
65 | 56 | <argument name="product" value="$$createVirtualProduct$$"/>
|
66 | 57 | </actionGroup>
|
67 |
| - |
68 | 58 | <!-- Customer added Simple Product to Cart -->
|
69 | 59 | <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addSimpleProductToCart">
|
70 | 60 | <argument name="product" value="$$createSimpleProduct$$"/>
|
71 | 61 | </actionGroup>
|
72 |
| - |
73 | 62 | <!-- Go to Shopping Cart page -->
|
74 | 63 | <actionGroup ref="ClickViewAndEditCartFromMiniCartActionGroup" stepKey="clickOnViewEditCart"/>
|
75 |
| - |
76 | 64 | <!-- Check shopping cart contains both the Product-->
|
77 | 65 | <seeElement selector="{{StorefrontMinicartSection.productCartName($$createVirtualProduct.name$$)}}" stepKey="AssertVirtualProduct"/>
|
78 | 66 | <seeElement selector="{{StorefrontMinicartSection.productCartName($$createSimpleProduct.name$$)}}" stepKey="AssertSimpleProduct"/>
|
79 |
| - |
80 | 67 | <!-- Link "Check Out with Multiple Addresses" is shown -->
|
81 | 68 | <seeLink userInput="Check Out with Multiple Addresses" stepKey="seeLinkIsOpened"/>
|
82 |
| - |
83 | 69 | <!-- Click Check Out with Multiple Addresses -->
|
84 | 70 | <actionGroup ref="StorefrontCheckoutWithMultipleAddressesActionGroup" stepKey="checkoutWithMultipleAddresses"/>
|
85 |
| - |
86 | 71 | <!-- Check Ship to Multiple Address Page is opened-->
|
87 |
| - |
88 | 72 | <waitForPageLoad stepKey="waitForAddressPage"/>
|
89 |
| - |
90 | 73 | <seeInCurrentUrl url="{{MultishippingCheckoutAddressesPage.url}}" stepKey="seeShiptoMultipleAddressesPageIsOpened"/>
|
91 |
| - |
92 | 74 | <!-- Assert Simple product has address in Send To section-->
|
93 | 75 | <actionGroup ref="AssertStorefrontMultishippingAddressAndItemActionGroup" stepKey="verifyLine1Qty">
|
94 | 76 | <argument name="productName" value="$createSimpleProduct.name$"/>
|
95 | 77 | </actionGroup>
|
96 |
| - |
97 | 78 | <!--Virtual product has a message in Send To section : "A shipping selection is not applicable.-->
|
98 | 79 | <grabTextFrom selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.shippingnotapplicable($$createVirtualProduct.name$$)}}" stepKey="grabshippingtext"/>
|
99 | 80 | <assertEquals message="Virtual product has a message in Send To section : 'A shipping selection is not applicable" stepKey="assertmessage">
|
100 | 81 | <expectedResult type="string">A shipping selection is not applicable.</expectedResult>
|
101 | 82 | <actualResult type="string">$grabshippingtext</actualResult>
|
102 | 83 | </assertEquals>
|
103 |
| - |
104 | 84 | <!-- Click Go to Shipping Information* -->
|
105 | 85 | <click selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.goToShippingInformation}}" stepKey="clickGoToShippingInformation"/>
|
106 |
| - |
107 |
| - |
108 | 86 | <!-- See Shipping Method is opened -->
|
109 | 87 | <wait time="10" stepKey="waitForCheckoutShippingPageUrl"/>
|
110 | 88 | <seeInCurrentUrl url="{{MultishippingCheckoutShippingPage.url}}" stepKey="seeSelectShippingMethodPageIsOpened"/>
|
111 |
| - |
112 |
| - |
113 | 89 | <!-- wait for selector -->
|
114 | 90 | <waitForElement selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.shippingmethods($$createSimpleProduct.name$$)}}" stepKey="waitForShippingMethodsVisible"/>
|
115 |
| - |
116 | 91 | <!-- See Shipping Method available ONLY for Simple product-->
|
117 | 92 | <seeElement selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.shippingmethods($$createSimpleProduct.name$$)}}" stepKey="ShippingMethodForSimpleProduct"/>
|
118 |
| - |
119 | 93 | <!-- See For Virtual product : "Shipping is not applicable.-->
|
120 | 94 | <seeElement selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.otheritems($$createVirtualProduct.name$$)}}" stepKey="ShippingMethodForVirtalProduct"/>
|
121 |
| - |
122 | 95 | <!-- Click On Continue to Billing-->
|
123 | 96 | <click selector="{{StorefrontMultishippingCheckoutShippingToolbarSection.continueToBilling}}" stepKey="clickContinueToBilling"/>
|
124 | 97 | <waitForPageLoad stepKey="waitForCheckoutShippingToolbarPageLoad"/>
|
125 |
| - |
126 | 98 | <!-- See Billing Information Page is opened-->
|
127 | 99 | <seeInCurrentUrl url="{{MultishippingCheckoutBillingPage.url}}" stepKey="seeBillingPageIsOpened"/>
|
128 |
| - |
129 | 100 | <!-- Check Page contains customer's billing address-->
|
130 | 101 | <actionGroup ref="StorefrontAssertBillingAddressInBillingInfoStepActionGroup" stepKey="assertCustomerBillingInformation"/>
|
131 |
| - |
132 |
| - |
133 | 102 | <!-- Page contains Payment Method -->
|
134 | 103 | <seeElement selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.checkmoneyorder}}" stepKey="CheckMoney"/>
|
135 |
| - |
136 | 104 | <!-- Select Payment method "Check / Money Order -->
|
137 | 105 | <conditionalClick selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.checkmoneyorder}}" dependentSelector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.checkmoneyorder}}" visible="true" stepKey="selectCheckmoPaymentMethod"/>
|
138 |
| - |
139 | 106 | <!-- Select Payment method e.g. "Check / Money Order" and click Go to Review Your Order -->
|
140 |
| - |
141 | 107 | <waitForElement selector="{{StorefrontMultishippingCheckoutBillingToolbarSection.goToReviewOrder}}" stepKey="waitForElementgoToReviewOrder"/>
|
142 |
| - |
143 | 108 | <click selector="{{StorefrontMultishippingCheckoutBillingToolbarSection.goToReviewOrder}}" stepKey="clickGoToReviewOrder"/>
|
144 |
| - |
145 |
| - |
146 | 109 | <!-- Check Page contains customer's billing address on OverViewPage-->
|
147 | 110 | <actionGroup ref="StorefrontAssertBillingAddressInBillingInfoStepActionGroup" stepKey="assertCustomerBillingInformationonOverViewPage"/>
|
148 |
| - |
149 | 111 | <!-- Check Payment Method on OverViewPage-->
|
150 | 112 | <seeElement selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.checkmoneyorderonOverViewPage}}" stepKey="CheckMoneyonOverViewPage"/>
|
151 |
| - |
152 | 113 | <!-- "Shipping To" - address that customer selected for shipping -->
|
153 | 114 | <actionGroup ref="StoreFrontAssertCustomerShippingAddressOrderViewPageActionGroup" stepKey="assertCustomerShippinginformation"/>
|
154 |
| - |
155 | 115 | <!--other shipping methods contain Virtual Product-->
|
156 | 116 | <seeElement selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.othershippingitems($$createVirtualProduct.name$$)}}" stepKey="otherItemsContainsVirtualProduct" />
|
157 |
| - |
158 | 117 | <!--Click on Place Order"-->
|
159 | 118 | <click selector="{{StorefrontMultishippingCheckoutOverviewReviewSection.placeOrder}}" stepKey="tryToPlaceOrder1"/>
|
160 |
| - |
161 | 119 | <!--Check Thank you for your purchase!" page is opened -->
|
162 | 120 | <see selector="{{StorefrontMultipleShippingMethodSection.successMessage}}" userInput="Successfully ordered" stepKey="seeSuccessMessage"/>
|
163 |
| - |
164 | 121 | <!--Grab Order ID of Simple and Virtual Product -->
|
165 | 122 | <grabTextFrom selector="{{StorefrontMultipleShippingMethodSection.orderId('1')}}" stepKey="grabFirstOrderId"/>
|
166 | 123 | <grabTextFrom selector="{{StorefrontMultipleShippingMethodSection.orderId('2')}}" stepKey="grabSecondOrderId"/>
|
167 |
| - |
168 | 124 | <!--Open Simple Product Link -->
|
169 | 125 | <click selector="{{StorefrontMultipleShippingMethodSection.orderByPosition('1')}}" stepKey="openOrderDetailsPage"/>
|
170 |
| - |
171 | 126 | <!--Assert Shipping Information for Simple Product -->
|
172 | 127 | <seeElement selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.shippingaddresstext}}" stepKey="assertSimpleProductShippingOrderDetails"/>
|
173 |
| - |
174 | 128 | <!-- Move back one page in history. -->
|
175 | 129 | <moveBack stepKey="moveBack"/>
|
176 |
| - |
177 | 130 | <!--Open Virtual Product Link -->
|
178 | 131 | <click selector="{{StorefrontMultipleShippingMethodSection.orderByPosition('2')}}" stepKey="assertVirtualProductShippingOrderDetails"/>
|
179 |
| - |
180 | 132 | <!--Open Virtual Product Link -->
|
181 | 133 | <dontSeeElement selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.shippingaddresstext}}" stepKey="assertVirtualsseehipping"/>
|
182 |
| - |
183 | 134 | </test>
|
184 | 135 | </tests>
|
185 |
| - |
186 |
| - |
0 commit comments