|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
11 | 11 | <test name="StorefrontPrintOrderGuestTest">
|
12 | 12 | <annotations>
|
| 13 | + <features value="Sales"/> |
13 | 14 | <stories value="Print Order"/>
|
14 | 15 | <title value="Print Order from Guest on Frontend"/>
|
15 | 16 | <description value="Print Order from Guest on Frontend"/>
|
16 |
| - <severity value="BLOCKER"/> |
17 |
| - <testCaseId value="MC-16225"/> |
| 17 | + <severity value="CRITICAL"/> |
| 18 | + <testCaseId value="MC-28494"/> |
18 | 19 | <group value="sales"/>
|
19 | 20 | <group value="mtf_migrated"/>
|
20 |
| - <skip> |
21 |
| - <issueId value="MQE-2288" /> |
22 |
| - </skip> |
23 | 21 | </annotations>
|
24 | 22 | <before>
|
25 | 23 | <magentoCLI command="downloadable:domains:add" arguments="example.com static.magento.com" stepKey="addDownloadableDomain"/>
|
|
40 | 38 |
|
41 | 39 | <!-- Check Links can be purchased separately for Downloadable Product -->
|
42 | 40 | <actionGroup ref="NavigateToCreatedProductEditPageActionGroup" stepKey="goToDownloadableProduct">
|
43 |
| - <argument name="product" value="$$downloadableProduct$$"/> |
| 41 | + <argument name="product" value="$downloadableProduct$"/> |
44 | 42 | </actionGroup>
|
45 | 43 | <waitForPageLoad stepKey="waitForPageLoad"/>
|
46 | 44 | <scrollTo selector="{{AdminProductDownloadableSection.sectionHeader}}" stepKey="scrollToDownloadableInformation"/>
|
|
116 | 114 |
|
117 | 115 | <!-- Grab attribute name for Configurable Product -->
|
118 | 116 | <actionGroup ref="NavigateToCreatedProductEditPageActionGroup" stepKey="goToConfigurableProduct">
|
119 |
| - <argument name="product" value="$$createConfigProduct$$"/> |
| 117 | + <argument name="product" value="$createConfigProduct$"/> |
120 | 118 | </actionGroup>
|
121 | 119 | <grabTextFrom selector="{{AdminConfigurableProductFormSection.currentAttribute}}" stepKey="grabAttribute"/>
|
122 | 120 | <assertNotEmpty stepKey="assertNotEmpty">
|
|
151 | 149 |
|
152 | 150 | <!-- Grab bundle option name for Bundle Product -->
|
153 | 151 | <actionGroup ref="NavigateToCreatedProductEditPageActionGroup" stepKey="goToBundleProduct">
|
154 |
| - <argument name="product" value="$$createBundleProduct$$"/> |
| 152 | + <argument name="product" value="$createBundleProduct$"/> |
155 | 153 | </actionGroup>
|
156 | 154 | <grabTextFrom selector="{{AdminProductFormBundleSection.currentBundleOption}}" stepKey="grabBundleOption"/>
|
157 | 155 | <assertNotEmpty stepKey="assertBundleOptionNotEmpty">
|
158 | 156 | <actualResult type="const">$grabBundleOption</actualResult>
|
159 | 157 | </assertNotEmpty>
|
160 | 158 |
|
| 159 | + <actionGroup ref="AdminClearFiltersActionGroup" stepKey="clearProductGridFilters"/> |
| 160 | + |
161 | 161 | <!-- Create sales rule -->
|
162 | 162 | <createData entity="ActiveSalesRuleCoupon50" stepKey="createCartPriceRule"/>
|
163 | 163 | <createData entity="SimpleSalesRuleCoupon" stepKey="createCouponForCartPriceRule">
|
|
176 | 176 |
|
177 | 177 | <!-- Place order with options according to dataset -->
|
178 | 178 | <actionGroup ref="NavigateToNewOrderPageExistingCustomerActionGroup" stepKey="newOrder">
|
179 |
| - <argument name="customer" value="$$createCustomer$$"/> |
| 179 | + <argument name="customer" value="$createCustomer$"/> |
180 | 180 | </actionGroup>
|
181 | 181 |
|
182 | 182 | <actionGroup ref="AdminFilterProductInCreateOrderActionGroup" stepKey="filterConfigProduct">
|
183 |
| - <argument name="productSKU" value="$$createConfigProduct.sku$$"/> |
| 183 | + <argument name="productSKU" value="$createConfigProduct.sku$"/> |
184 | 184 | </actionGroup>
|
185 | 185 |
|
186 | 186 | <actionGroup ref="AdminAddToOrderConfigurableProductActionGroup" stepKey="addConfProduct">
|
187 | 187 | <argument name="attribute" value="{$grabAttribute}"/>
|
188 |
| - <argument name="option" value="$$getConfigAttributeOption1.label$$"/> |
| 188 | + <argument name="option" value="$getConfigAttributeOption1.label$"/> |
189 | 189 | <argument name="quantity" value="3"/>
|
190 | 190 | </actionGroup>
|
191 | 191 |
|
192 | 192 | <actionGroup ref="AdminFilterProductInCreateOrderActionGroup" stepKey="filterBundleProduct">
|
193 |
| - <argument name="productSKU" value="$$createBundleProduct.sku$$"/> |
| 193 | + <argument name="productSKU" value="$createBundleProduct.sku$"/> |
194 | 194 | </actionGroup>
|
195 | 195 | <actionGroup ref="AdminAddToOrderBundleProductActionGroup" stepKey="addBundleProduct">
|
196 | 196 | <argument name="option" value="{$grabBundleOption}"/>
|
197 |
| - <argument name="selectedProductName" value="$$simpleProduct1.name$$"/> |
| 197 | + <argument name="selectedProductName" value="$simpleProduct1.name$"/> |
198 | 198 | <argument name="quantity" value="2"/>
|
199 | 199 | </actionGroup>
|
200 | 200 |
|
201 | 201 | <actionGroup ref="AdminFilterProductInCreateOrderActionGroup" stepKey="filterDownloadableProduct">
|
202 |
| - <argument name="productSKU" value="$$downloadableProduct.sku$$"/> |
| 202 | + <argument name="productSKU" value="$downloadableProduct.sku$"/> |
203 | 203 | </actionGroup>
|
204 | 204 | <actionGroup ref="AdminAddToOrderDownloadableProductActionGroup" stepKey="addDownloadableProduct">
|
205 | 205 | <argument name="link" value="{$grabLink}"/>
|
|
208 | 208 |
|
209 | 209 | <!-- add Coupon -->
|
210 | 210 | <actionGroup ref="AdminAddToOrderCouponCodeActionGroup" stepKey="addCoupon">
|
211 |
| - <argument name="couponCode" value="$$createCouponForCartPriceRule.code$$"/> |
| 211 | + <argument name="couponCode" value="$createCouponForCartPriceRule.code$"/> |
212 | 212 | </actionGroup>
|
213 | 213 |
|
214 | 214 | <actionGroup ref="FillOrderCustomerInformationActionGroup" stepKey="fillOrder">
|
215 |
| - <argument name="customer" value="$$createCustomer$$"/> |
| 215 | + <argument name="customer" value="$createCustomer$"/> |
216 | 216 | <argument name="address" value="US_Address_TX"/>
|
217 | 217 | </actionGroup>
|
218 | 218 |
|
|
256 | 256 | <!-- Fill the form with correspondent Order data -->
|
257 | 257 | <actionGroup ref="StorefrontFillOrdersAndReturnsFormActionGroup" stepKey="fillOrder">
|
258 | 258 | <argument name="orderNumber" value="{$getOrderId}"/>
|
259 |
| - <argument name="customer" value="$$createCustomer$$"/> |
| 259 | + <argument name="customer" value="$createCustomer$"/> |
260 | 260 | </actionGroup>
|
261 | 261 |
|
262 | 262 | <!-- Click on the "Continue" button -->
|
|
265 | 265 |
|
266 | 266 | <!-- Click on the "Print Order" button -->
|
267 | 267 | <click selector="{{StorefrontGuestOrderViewSection.printOrder}}" stepKey="printOrder"/>
|
268 |
| - <wait time="5" stepKey="waitForPrintWindowToOpen" /> |
| 268 | + <waitForPageLoad stepKey="waitForPrintWindowToOpen" /> |
269 | 269 | <switchToWindow stepKey="switchToWindow"/>
|
270 |
| - <wait time="5" stepKey="waitForPrintTabToOpen" /> |
| 270 | + <waitForElement selector="{{SalesOrderPrintSection.isOrderPrintPage}}" stepKey="waitForPrintTabToOpen"/> |
271 | 271 | <switchToNextTab stepKey="switchToTab"/>
|
272 |
| - <wait stepKey="waitForPrintPreviewToLoad" time="5" /> |
| 272 | + <waitForPageLoad stepKey="waitForPrintPreviewToLoad"/> |
273 | 273 | <seeInCurrentUrl url="sales/guest/print/order_id/" stepKey="seePrintPage"/>
|
274 | 274 |
|
275 | 275 | <!-- AssertSalesPrintOrderProducts -->
|
276 |
| - <see userInput="$$createBundleProduct.name$$" selector="{{StorefrontOrderDetailsSection.productNameCell}}" stepKey="seeBundleProduct"/> |
277 |
| - <see userInput="$$downloadableProduct.name$$" selector="{{StorefrontOrderDetailsSection.productNameCell}}" stepKey="seeDownloadableProduct"/> |
278 |
| - <see userInput="$$createConfigProduct.name$$" selector="{{StorefrontOrderDetailsSection.productNameCell}}" stepKey="seeConfigurableProduct"/> |
| 276 | + <see userInput="$createBundleProduct.name$" selector="{{StorefrontOrderDetailsSection.productNameCell}}" stepKey="seeBundleProduct"/> |
| 277 | + <see userInput="$downloadableProduct.name$" selector="{{StorefrontOrderDetailsSection.productNameCell}}" stepKey="seeDownloadableProduct"/> |
| 278 | + <see userInput="$createConfigProduct.name$" selector="{{StorefrontOrderDetailsSection.productNameCell}}" stepKey="seeConfigurableProduct"/> |
279 | 279 |
|
280 | 280 | <!-- AssertSalesPrintOrderBillingAddress -->
|
281 | 281 | <scrollTo selector="{{StorefrontOrderDetailsSection.orderDetailsBlock}}" stepKey="scrollToFooter"/>
|
|
0 commit comments