Skip to content

Commit 2ed8a46

Browse files
author
Oleksandr Iegorov
committed
MC-29335: Missing paid orders and lock wait timeouts in Guest Checkout
1 parent a539498 commit 2ed8a46

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/code/Magento/SalesRule/Test/Mftf/Test/StorefrontAutoGeneratedCouponCodeTest.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@
6363
<argument name="consumerName" value="{{AdminCodeGeneratorMessageConsumerData.consumerName}}"/>
6464
<argument name="maxMessages" value="{{AdminCodeGeneratorMessageConsumerData.messageLimit}}"/>
6565
</actionGroup>
66-
<actionGroup ref="CliConsumerStartActionGroup" stepKey="startUsageProcessingMessageQueue">
67-
<argument name="consumerName" value="{{SalesRuleConsumerData.consumerName}}"/>
68-
<argument name="maxMessages" value="{{SalesRuleConsumerData.messageLimit}}"/>
69-
</actionGroup>
7066
<actionGroup ref="ReloadPageActionGroup" stepKey="refreshPage"/>
7167
<comment userInput="Replacing reload action and preserve Backward Compatibility" stepKey="waitFormToReload1"/>
7268
<conditionalClick selector="{{AdminCartPriceRulesFormSection.manageCouponCodesHeader}}"
@@ -105,10 +101,16 @@
105101
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyPayment"/>
106102
<click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrder"/>
107103
<waitForElement selector="{{CheckoutSuccessMainSection.success}}" time="30" stepKey="waitForLoadSuccessPage"/>
104+
<actionGroup ref="CliConsumerStartActionGroup" stepKey="startUsageProcessingMessageQueue">
105+
<argument name="consumerName" value="{{SalesRuleConsumerData.consumerName}}"/>
106+
<argument name="maxMessages" value="{{SalesRuleConsumerData.messageLimit}}"/>
107+
</actionGroup>
108+
<reloadPage stepKey="refreshPage1"/>
108109

109110
<!-- Step: 9-10. Open the Product Page, add the product to Cart, go to Shopping Cart and Apply the same coupon code -->
110111
<amOnPage url="{{StorefrontProductPage.url($$createSimpleProduct.name$$)}}" stepKey="openProductPage1"/>
111112
<waitForPageLoad stepKey="waitForPageLoad3"/>
113+
<reloadPage stepKey="refreshPage2"/>
112114
<actionGroup ref="ApplyCartRuleOnStorefrontActionGroup" stepKey="applyCartPriceRule1">
113115
<argument name="product" value="$$createSimpleProduct$$"/>
114116
<argument name="couponCode" value="{$couponCode}"/>

0 commit comments

Comments
 (0)