Skip to content

Commit 83a4f09

Browse files
committed
Moved going to order page and clearing the filters outside action group
1 parent 2b86774 commit 83a4f09

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

app/code/Magento/Checkout/Test/Mftf/Test/CheckCheckoutSuccessPageTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
<after>
3030
<!--Cancel orders-->
3131
<actionGroup ref="AdminLoginActionGroup" stepKey="adminLogin"/>
32+
<actionGroup ref="AdminOrdersGridClearFiltersActionGroup" stepKey="goToOrdersPage"/>
33+
<waitForLoadingMaskToDisappear stepKey="waitAfterClearFilters"/>
3234
<actionGroup ref="AdminOrderChangeByCustomerEmailActionGroup" stepKey="cancelOrders">
3335
<argument name="customerEmail" value="$$createSimpleUsCustomer.email$$"/>
3436
</actionGroup>

app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminOrderChangeByCustomerEmailActionGroup.xml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,14 @@
1010
<actionGroup name="AdminOrderChangeByCustomerEmailActionGroup">
1111
<annotations>
1212
<description>
13-
Goes to the Admin Orders grid page and changes all orders found by Customer Email field.
13+
Changes all orders found by Customer Email field.
1414
</description>
1515
</annotations>
1616
<arguments>
1717
<argument name="customerEmail" type="string"/>
1818
<argument name="actionLabel" type="string" defaultValue="Cancel"/>
1919
</arguments>
2020

21-
<!-- Go to orders page, clear filters -->
22-
<amOnPage url="{{AdminOrdersPage.url}}" stepKey="goToOrdersPage"/>
23-
<waitForPageLoad stepKey="waitForPageLoad"/>
24-
<conditionalClick
25-
selector="{{AdminDataGridFilterSection.clear}}"
26-
dependentSelector="{{AdminDataGridFilterSection.clear}}"
27-
visible="true"
28-
stepKey="clearFiltersIfPresent"
29-
/>
30-
<waitForLoadingMaskToDisappear stepKey="waitAfterClearFilters"/>
31-
3221
<!-- Show Customer Email column in the grid -->
3322
<click selector="{{AdminDataGridHeaderSection.columnsToggle}}" stepKey="openOrderColumns"/>
3423
<checkOption

0 commit comments

Comments
 (0)