Skip to content

Commit 1f258dc

Browse files
committed
added check after provideCommentStep
changed click Get shipping methods to conditional one
1 parent 77bb71e commit 1f258dc

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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="AdminSelectFlatRateShippingMethodOnCreateOrderPageActionGroup" extends="AdminSelectFlatRateShippingMethodActionGroup">
12+
<annotations>
13+
<description>Clicks the Get shipping methods and rates link if it is displayed and Selects the Flat Rate Shipping Method</description>
14+
</annotations>
15+
<remove keyForRemoval="openShippingMethod"/>
16+
<conditionalClick selector="{{AdminInvoicePaymentShippingSection.getShippingMethodAndRates}}" dependentSelector="{{AdminInvoicePaymentShippingSection.getShippingMethodAndRates}}" visible="true" stepKey="openShippingMethodIfCollapsed" before="waitForShippingMethods"/>
17+
</actionGroup>
18+
</actionGroups>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
<actionGroup ref="AdminAddCommentOnCreateOrderPageActionGroup" stepKey="provideComment">
4343
<argument name="comment" value="Test Order Comment"/>
4444
</actionGroup>
45-
<scrollTo selector="{{AdminInvoicePaymentShippingSection.getShippingMethodAndRates}}" stepKey="scrollToShipping"/>
45+
<seeCheckboxIsChecked selector="{{AdminOrderFormTotalSection.appendComments}}" stepKey="checkAppendCommentsCheckboxIsCheckedAfterCommentProvided"/>
4646
<actionGroup ref="SelectCheckMoneyPaymentMethodActionGroup" stepKey="selectPaymentMethod"/>
47-
<actionGroup ref="AdminSelectFlatRateShippingMethodActionGroup" stepKey="selectFlatRate"/>
48-
<seeCheckboxIsChecked selector="{{AdminOrderFormTotalSection.appendComments}}" stepKey="checkAppendCommentsCheckboxIsChecked"/>
47+
<actionGroup ref="AdminSelectFlatRateShippingMethodOnCreateOrderPageActionGroup" stepKey="selectFlatRate"/>
48+
<seeCheckboxIsChecked selector="{{AdminOrderFormTotalSection.appendComments}}" stepKey="checkAppendCommentsCheckboxIsCheckedAfterShippingSelected"/>
4949
<actionGroup ref="AdminSubmitOrderActionGroup" stepKey="submitOrder"/>
5050
<actionGroup ref="AdminCheckIfCustomerIsNotifiedOfOrderCommentActionGroup" stepKey="assertCustomerIsNotified">
5151
<argument name="orderComment" value="Test Order Comment"/>

0 commit comments

Comments
 (0)