File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
app/code/Magento/Sales/Test/Mftf/ActionGroup Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 259
259
<see selector =" {{AdminOrderItemsOrderedSection.productSkuColumn}}" userInput =" {{product.sku}}" stepKey =" seeSkuInItemsOrdered" />
260
260
</actionGroup >
261
261
262
- <!-- Cancel order that is in pending status-->
263
- <actionGroup name =" cancelPendingOrder" >
264
- <click selector =" {{AdminOrderDetailsMainActionsSection.cancel}}" stepKey =" clickCancelOrder" />
265
- <waitForElement selector =" {{AdminConfirmationModalSection.message}}" stepKey =" waitForCancelConfirmation" />
266
- <see selector =" {{AdminConfirmationModalSection.message}}" userInput =" Are you sure you want to cancel this order?" stepKey =" seeConfirmationMessage" />
267
- <click selector =" {{AdminConfirmationModalSection.ok}}" stepKey =" confirmOrderCancel" />
268
- <see selector =" {{AdminMessagesSection.success}}" userInput =" You canceled the order." stepKey =" seeCancelSuccessMessage" />
269
- <see selector =" {{AdminOrderDetailsInformationSection.orderStatus}}" userInput =" Canceled" stepKey =" seeOrderStatusCanceled" />
270
- </actionGroup >
271
-
272
262
<actionGroup name =" CreateOrderInStoreActionGroup" >
273
263
<arguments >
274
264
<argument name =" product" />
292
282
<click selector =" {{OrdersGridSection.submitOrder}}" stepKey =" submitOrder" />
293
283
<see stepKey =" seeSuccessMessageForOrder" userInput =" You created the order." />
294
284
</actionGroup >
285
+
286
+ <!-- Cancel order that is in pending status-->
287
+ <actionGroup name =" cancelPendingOrder" >
288
+ <click selector =" {{AdminOrderDetailsMainActionsSection.cancel}}" stepKey =" clickCancelOrder" />
289
+ <waitForElement selector =" {{AdminConfirmationModalSection.message}}" stepKey =" waitForCancelConfirmation" />
290
+ <see selector =" {{AdminConfirmationModalSection.message}}" userInput =" Are you sure you want to cancel this order?" stepKey =" seeConfirmationMessage" />
291
+ <click selector =" {{AdminConfirmationModalSection.ok}}" stepKey =" confirmOrderCancel" />
292
+ <see selector =" {{AdminMessagesSection.success}}" userInput =" You canceled the order." stepKey =" seeCancelSuccessMessage" />
293
+ <see selector =" {{AdminOrderDetailsInformationSection.orderStatus}}" userInput =" Canceled" stepKey =" seeOrderStatusCanceled" />
294
+ </actionGroup >
295
295
</actionGroups >
You can’t perform that action at this time.
0 commit comments