Skip to content

Commit a13eaa5

Browse files
author
Stas Puga
committed
MC-40168: [JetTeam] Unskip StorefrontPrintOrderGuestTest
1 parent 960a51f commit a13eaa5

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AdminMoveCategoryAndCheckUrlRewritesTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<createData entity="FirstLevelSubCat" stepKey="createDefaultCategory">
2323
<field key="is_active">true</field>
2424
</createData>
25-
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
25+
<magentoCron groups="index" stepKey="reindex"/>
2626
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
2727
<argument name="tags" value=""/>
2828
</actionGroup>

app/code/Magento/Sales/Test/Mftf/Test/StorefrontPrintOrderGuestTest.xml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,14 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
1111
<test name="StorefrontPrintOrderGuestTest">
1212
<annotations>
13+
<features value="Sales"/>
1314
<stories value="Print Order"/>
1415
<title value="Print Order from Guest on Frontend"/>
1516
<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"/>
1819
<group value="sales"/>
1920
<group value="mtf_migrated"/>
20-
<skip>
21-
<issueId value="MQE-2288" />
22-
</skip>
2321
</annotations>
2422
<before>
2523
<magentoCLI command="downloadable:domains:add" arguments="example.com static.magento.com" stepKey="addDownloadableDomain"/>
@@ -40,7 +38,7 @@
4038

4139
<!-- Check Links can be purchased separately for Downloadable Product -->
4240
<actionGroup ref="NavigateToCreatedProductEditPageActionGroup" stepKey="goToDownloadableProduct">
43-
<argument name="product" value="$$downloadableProduct$$"/>
41+
<argument name="product" value="$downloadableProduct$"/>
4442
</actionGroup>
4543
<waitForPageLoad stepKey="waitForPageLoad"/>
4644
<scrollTo selector="{{AdminProductDownloadableSection.sectionHeader}}" stepKey="scrollToDownloadableInformation"/>
@@ -116,7 +114,7 @@
116114

117115
<!-- Grab attribute name for Configurable Product -->
118116
<actionGroup ref="NavigateToCreatedProductEditPageActionGroup" stepKey="goToConfigurableProduct">
119-
<argument name="product" value="$$createConfigProduct$$"/>
117+
<argument name="product" value="$createConfigProduct$"/>
120118
</actionGroup>
121119
<grabTextFrom selector="{{AdminConfigurableProductFormSection.currentAttribute}}" stepKey="grabAttribute"/>
122120
<assertNotEmpty stepKey="assertNotEmpty">
@@ -151,13 +149,15 @@
151149

152150
<!-- Grab bundle option name for Bundle Product -->
153151
<actionGroup ref="NavigateToCreatedProductEditPageActionGroup" stepKey="goToBundleProduct">
154-
<argument name="product" value="$$createBundleProduct$$"/>
152+
<argument name="product" value="$createBundleProduct$"/>
155153
</actionGroup>
156154
<grabTextFrom selector="{{AdminProductFormBundleSection.currentBundleOption}}" stepKey="grabBundleOption"/>
157155
<assertNotEmpty stepKey="assertBundleOptionNotEmpty">
158156
<actualResult type="const">$grabBundleOption</actualResult>
159157
</assertNotEmpty>
160158

159+
<actionGroup ref="AdminClearFiltersActionGroup" stepKey="clearProductGridFilters"/>
160+
161161
<!-- Create sales rule -->
162162
<createData entity="ActiveSalesRuleCoupon50" stepKey="createCartPriceRule"/>
163163
<createData entity="SimpleSalesRuleCoupon" stepKey="createCouponForCartPriceRule">
@@ -176,30 +176,30 @@
176176

177177
<!-- Place order with options according to dataset -->
178178
<actionGroup ref="NavigateToNewOrderPageExistingCustomerActionGroup" stepKey="newOrder">
179-
<argument name="customer" value="$$createCustomer$$"/>
179+
<argument name="customer" value="$createCustomer$"/>
180180
</actionGroup>
181181

182182
<actionGroup ref="AdminFilterProductInCreateOrderActionGroup" stepKey="filterConfigProduct">
183-
<argument name="productSKU" value="$$createConfigProduct.sku$$"/>
183+
<argument name="productSKU" value="$createConfigProduct.sku$"/>
184184
</actionGroup>
185185

186186
<actionGroup ref="AdminAddToOrderConfigurableProductActionGroup" stepKey="addConfProduct">
187187
<argument name="attribute" value="{$grabAttribute}"/>
188-
<argument name="option" value="$$getConfigAttributeOption1.label$$"/>
188+
<argument name="option" value="$getConfigAttributeOption1.label$"/>
189189
<argument name="quantity" value="3"/>
190190
</actionGroup>
191191

192192
<actionGroup ref="AdminFilterProductInCreateOrderActionGroup" stepKey="filterBundleProduct">
193-
<argument name="productSKU" value="$$createBundleProduct.sku$$"/>
193+
<argument name="productSKU" value="$createBundleProduct.sku$"/>
194194
</actionGroup>
195195
<actionGroup ref="AdminAddToOrderBundleProductActionGroup" stepKey="addBundleProduct">
196196
<argument name="option" value="{$grabBundleOption}"/>
197-
<argument name="selectedProductName" value="$$simpleProduct1.name$$"/>
197+
<argument name="selectedProductName" value="$simpleProduct1.name$"/>
198198
<argument name="quantity" value="2"/>
199199
</actionGroup>
200200

201201
<actionGroup ref="AdminFilterProductInCreateOrderActionGroup" stepKey="filterDownloadableProduct">
202-
<argument name="productSKU" value="$$downloadableProduct.sku$$"/>
202+
<argument name="productSKU" value="$downloadableProduct.sku$"/>
203203
</actionGroup>
204204
<actionGroup ref="AdminAddToOrderDownloadableProductActionGroup" stepKey="addDownloadableProduct">
205205
<argument name="link" value="{$grabLink}"/>
@@ -208,11 +208,11 @@
208208

209209
<!-- add Coupon -->
210210
<actionGroup ref="AdminAddToOrderCouponCodeActionGroup" stepKey="addCoupon">
211-
<argument name="couponCode" value="$$createCouponForCartPriceRule.code$$"/>
211+
<argument name="couponCode" value="$createCouponForCartPriceRule.code$"/>
212212
</actionGroup>
213213

214214
<actionGroup ref="FillOrderCustomerInformationActionGroup" stepKey="fillOrder">
215-
<argument name="customer" value="$$createCustomer$$"/>
215+
<argument name="customer" value="$createCustomer$"/>
216216
<argument name="address" value="US_Address_TX"/>
217217
</actionGroup>
218218

@@ -256,7 +256,7 @@
256256
<!-- Fill the form with correspondent Order data -->
257257
<actionGroup ref="StorefrontFillOrdersAndReturnsFormActionGroup" stepKey="fillOrder">
258258
<argument name="orderNumber" value="{$getOrderId}"/>
259-
<argument name="customer" value="$$createCustomer$$"/>
259+
<argument name="customer" value="$createCustomer$"/>
260260
</actionGroup>
261261

262262
<!-- Click on the "Continue" button -->
@@ -265,17 +265,17 @@
265265

266266
<!-- Click on the "Print Order" button -->
267267
<click selector="{{StorefrontGuestOrderViewSection.printOrder}}" stepKey="printOrder"/>
268-
<wait time="5" stepKey="waitForPrintWindowToOpen" />
268+
<waitForPageLoad stepKey="waitForPrintWindowToOpen" />
269269
<switchToWindow stepKey="switchToWindow"/>
270-
<wait time="5" stepKey="waitForPrintTabToOpen" />
270+
<waitForElement selector="{{SalesOrderPrintSection.isOrderPrintPage}}" stepKey="waitForPrintTabToOpen"/>
271271
<switchToNextTab stepKey="switchToTab"/>
272-
<wait stepKey="waitForPrintPreviewToLoad" time="5" />
272+
<waitForPageLoad stepKey="waitForPrintPreviewToLoad"/>
273273
<seeInCurrentUrl url="sales/guest/print/order_id/" stepKey="seePrintPage"/>
274274

275275
<!-- 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"/>
279279

280280
<!-- AssertSalesPrintOrderBillingAddress -->
281281
<scrollTo selector="{{StorefrontOrderDetailsSection.orderDetailsBlock}}" stepKey="scrollToFooter"/>

0 commit comments

Comments
 (0)