Skip to content

Commit 5443a31

Browse files
committed
MC-33699: Stabilize MFTF tests
fix for NoOptionAvailableToConfigureDisabledProductTest
1 parent 6f9662e commit 5443a31

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/NoOptionAvailableToConfigureDisabledProductTest.xml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,19 +154,29 @@
154154
<click selector="{{AdminOrderFormItemsSection.addSelected}}" stepKey="clickToAddProductToOrder"/>
155155
<waitForPageLoad stepKey="waitForNewOrderPageLoad"/>
156156
<see userInput="This product is out of stock." stepKey="seeTheErrorMessageDisplayed"/>
157+
158+
<actionGroup ref="NavigateToNewOrderPageExistingCustomerActionGroup" stepKey="createNewOrderThirdTime">
159+
<argument name="customer" value="$createCustomer$"/>
160+
</actionGroup>
161+
<actionGroup ref="AddSimpleProductToOrderActionGroup" stepKey="addThirdChildProductToOrder">
162+
<argument name="product" value="$createConfigChildProduct3$"/>
163+
<argument name="productQty" value="1"/>
164+
</actionGroup>
165+
<actionGroup ref="AssertAdminItemOrderedErrorNotVisibleActionGroup" stepKey="assertNoticeAbsent">
166+
<argument name="productName" value="$createConfigChildProduct3.name$"/>
167+
<argument name="messageType" value="notice"/>
168+
</actionGroup>
169+
<actionGroup ref="AssertAdminItemOrderedErrorNotVisibleActionGroup" stepKey="assertErrorAbsent">
170+
<argument name="productName" value="$createConfigChildProduct3.name$"/>
171+
<argument name="messageType" value="error"/>
172+
</actionGroup>
157173
<!-- Select shipping method -->
158174
<comment userInput="Select shipping method" stepKey="selectShippingMethod"/>
159175
<click selector="{{AdminInvoicePaymentShippingSection.getShippingMethodAndRates}}" stepKey="openShippingMethod"/>
160176
<waitForPageLoad stepKey="waitForShippingMethods"/>
161177
<click selector="{{AdminInvoicePaymentShippingSection.shippingMethod}}" stepKey="chooseShippingMethod"/>
162178
<waitForPageLoad stepKey="waitForShippingMethodLoad"/>
163179
<click selector="{{AdminOrderFormActionSection.SubmitOrder}}" stepKey="clickSubmitOrder"/>
164-
<waitForPageLoad stepKey="waitForError"/>
165-
<!-- Check that error remains -->
166-
<actionGroup ref="AssertAdminItemOrderedErrorActionGroup" stepKey="assertProductErrorRemains">
167-
<argument name="productName" value="$createConfigChildProduct2.name$"/>
168-
<argument name="messageType" value="error"/>
169-
<argument name="message" value="This product is out of stock."/>
170-
</actionGroup>
180+
<actionGroup ref="VerifyCreatedOrderInformationActionGroup" stepKey="checkOrderSuccessfullyCreated"/>
171181
</test>
172182
</tests>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@
7070
<argument name="productQty" value="1"/>
7171
</actionGroup>
7272
<!-- Check that error remains -->
73-
<see userInput="The requested qty is not available" selector="{{AdminOrderFormMessagesSection.error}}" stepKey="assertProductErrorRemains"/>
73+
<see userInput="The requested qty is not available" stepKey="assertProductErrorRemains"/>
7474
</test>
7575
</tests>

0 commit comments

Comments
 (0)