Skip to content

Commit 585a7d5

Browse files
committed
MC-25108: MFTF Flakiness because of bad design - StoreFrontMyAccountWithMultishipmentTest
1 parent 6656fce commit 585a7d5

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

app/code/Magento/Multishipping/Test/Mftf/Test/StorefrontOrderWithMultishippingTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@
9393
<argument name="orderId" value="{$getFirstOrderIdPlaceOrder}"/>
9494
</actionGroup>
9595
<!-- Check status -->
96-
<see selector="{{AdminOrderDetailsInformationSection.orderStatus}}" userInput="Pending" stepKey="seeFirstOrderPendingStatus"/>
96+
<actionGroup ref="AdminOrderViewCheckStatusActionGroup" stepKey="seeFirstOrderPendingStatus"/>
9797
<actionGroup ref="AdminSalesOrderActionGroup" stepKey="validateOrderTotalsForFirstOrder"/>
9898
<!-- Go to order page -->
9999
<actionGroup ref="OpenOrderByIdActionGroup" stepKey="openSecondOrderPage">
100100
<argument name="orderId" value="{$getSecondOrderIdPlaceOrder}"/>
101101
</actionGroup>
102102
<!-- Check status -->
103-
<see selector="{{AdminOrderDetailsInformationSection.orderStatus}}" userInput="Pending" stepKey="seeSecondOrderPendingStatus"/>
103+
<actionGroup ref="AdminOrderViewCheckStatusActionGroup" stepKey="seeSecondOrderPendingStatus"/>
104104
<actionGroup ref="AdminSalesOrderActionGroup" stepKey="validateOrderTotalsForSecondOrder"/>
105105
</test>
106106
</tests>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminOrderViewCheckStatusActionGroup">
12+
<annotations>
13+
<description>Check order status on order view page.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="status" type="string" defaultValue="Pending"/>
17+
</arguments>
18+
19+
<see selector="{{AdminOrderDetailsInformationSection.orderStatus}}" userInput="{{status}}" stepKey="seeOrderStatus"/>
20+
</actionGroup>
21+
</actionGroups>

0 commit comments

Comments
 (0)