Skip to content

Commit e8f7b17

Browse files
committed
add AdminOpenCustomersGridActionGroup
1 parent b9c13fd commit e8f7b17

22 files changed

+43
-39
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/CheckTierPricingOfProductsTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@
127127
<waitForPageLoad stepKey="waitForCustomersPage"/>
128128
<see userInput="You saved the customer." stepKey="CustomerIsSaved"/>
129129

130-
<amOnPage url="{{AdminCustomerPage.url}}" stepKey="navigateToCustomers"/>
131-
<waitForPageLoad stepKey="waitForPageLoad1" />
130+
<actionGroup ref="AdminOpenCustomersGridActionGroup" stepKey="navigateToCustomers"/>
132131
<click selector="{{AdminCustomerFiltersSection.clearAll}}" stepKey="ClearFilters"/>
133132
<waitForPageLoad stepKey="waitForFiltersClear"/>
134133

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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="AdminOpenCustomersGridActionGroup">
12+
<annotations>
13+
<description>Open the Admin Customers grid page.</description>
14+
</annotations>
15+
16+
<amOnPage url="{{AdminCustomerPage.url}}" stepKey="openCustomersGridPage"/>
17+
<waitForPageLoad stepKey="waitForPageLoad"/>
18+
</actionGroup>
19+
</actionGroups>

app/code/Magento/Customer/Test/Mftf/Test/AdminAddNewDefaultBillingShippingCustomerAddressTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
Step2. On *Customers* page choose customer from preconditions and open it to edit
3131
Step3. Open *Addresses* tab on edit customer page and press *Add New Address* button
3232
<!- -->
33-
<amOnPage url="{{AdminCustomerPage.url}}" stepKey="openCustomersGridPage"/>
33+
<actionGroup ref="AdminOpenCustomersGridActionGroup" stepKey="openCustomersGridPage"/>
3434
<actionGroup ref="OpenEditCustomerFromAdminActionGroup" stepKey="openEditCustomerPage">
3535
<argument name="customer" value="Simple_US_Customer_Multiple_Addresses_No_Default_Address"/>
3636
</actionGroup>

app/code/Magento/Customer/Test/Mftf/Test/AdminChangeCustomerGenderInCustomersGridTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
<after>
2727
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
2828
<!-- Reset customer grid filter -->
29-
<amOnPage url="{{AdminCustomerPage.url}}" stepKey="goToCustomersGridPage"/>
30-
<waitForPageLoad stepKey="waitForCustomersGrid"/>
29+
<actionGroup ref="AdminOpenCustomersGridActionGroup" stepKey="goToCustomersGridPage"/>
3130
<actionGroup ref="AdminResetFilterInCustomerGrid" stepKey="resetFilter"/>
3231

3332
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>

app/code/Magento/Customer/Test/Mftf/Test/AdminCreateCustomerTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
</after>
3030

3131
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin1"/>
32-
<amOnPage url="{{AdminCustomerPage.url}}" stepKey="navigateToCustomers"/>
33-
<waitForPageLoad stepKey="waitForLoad1"/>
32+
<actionGroup ref="AdminOpenCustomersGridActionGroup" stepKey="navigateToCustomers"/>
3433
<click selector="{{AdminCustomerGridMainActionsSection.addNewCustomer}}" stepKey="clickCreateCustomer"/>
3534
<fillField userInput="{{CustomerEntityOne.firstname}}" selector="{{AdminCustomerAccountInformationSection.firstName}}" stepKey="fillFirstName"/>
3635
<fillField userInput="{{CustomerEntityOne.lastname}}" selector="{{AdminCustomerAccountInformationSection.lastName}}" stepKey="fillLastName"/>

app/code/Magento/Customer/Test/Mftf/Test/AdminCreateNewCustomerOnStorefrontSignupNewsletterTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
</actionGroup>
3636

3737
<!--Assert verify created new customer in grid-->
38-
<amOnPage url="{{AdminCustomerPage.url}}" stepKey="navigateToCustomers"/>
39-
<waitForPageLoad stepKey="waitForNavigateToCustomersPageLoad"/>
38+
<actionGroup ref="AdminOpenCustomersGridActionGroup" stepKey="navigateToCustomers"/>
4039
<click selector="{{AdminCustomerFiltersSection.filtersButton}}" stepKey="clickFilterButton"/>
4140
<fillField userInput="{{CustomerEntityOne.email}}" selector="{{AdminCustomerFiltersSection.emailInput}}" stepKey="filterEmail"/>
4241
<click selector="{{AdminCustomerFiltersSection.apply}}" stepKey="clickApplyFilter"/>

app/code/Magento/Customer/Test/Mftf/Test/AdminDeleteCustomerAddressesFromTheGridTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
Step2. On *Customers* page choose customer from preconditions and open it to edit
3535
Step3. On edit customer page open *Addresses* tab and find a grid with the additional addresses
3636
<!- -->
37-
<amOnPage url="{{AdminCustomerPage.url}}" stepKey="openCustomersGridPage"/>
37+
<actionGroup ref="AdminOpenCustomersGridActionGroup" stepKey="openCustomersGridPage"/>
3838
<actionGroup ref="OpenEditCustomerFromAdminActionGroup" stepKey="openEditCustomerPage">
3939
<argument name="customer" value="Simple_US_Customer_Multiple_Addresses"/>
4040
</actionGroup>

app/code/Magento/Customer/Test/Mftf/Test/AdminDeleteCustomerAddressesFromTheGridViaMassActionsTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
Step2. On *Customers* page choose customer from preconditions and open it to edit
3535
Step3. On edit customer page open *Addresses* tab and find a grid with the additional addresses
3636
<!- -->
37-
<amOnPage url="{{AdminCustomerPage.url}}" stepKey="openCustomersGridPage"/>
37+
<actionGroup ref="AdminOpenCustomersGridActionGroup" stepKey="openCustomersGridPage"/>
3838
<actionGroup ref="OpenEditCustomerFromAdminActionGroup" stepKey="openEditCustomerPage">
3939
<argument name="customer" value="Simple_US_Customer_Multiple_Addresses"/>
4040
</actionGroup>

app/code/Magento/Customer/Test/Mftf/Test/AdminDeleteDefaultBillingCustomerAddressTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
Step1. Login to admin and go to Customers > All Customers.
3434
Step2. On *Customers* page choose customer from preconditions and open it to edit
3535
<!- -->
36-
<amOnPage url="{{AdminCustomerPage.url}}" stepKey="openCustomersGridPage"/>
36+
<actionGroup ref="AdminOpenCustomersGridActionGroup" stepKey="openCustomersGridPage"/>
3737
<actionGroup ref="OpenEditCustomerFromAdminActionGroup" stepKey="openEditCustomerPage">
3838
<argument name="customer" value="Simple_US_Customer_Multiple_Addresses"/>
3939
</actionGroup>

app/code/Magento/Customer/Test/Mftf/Test/AdminEditDefaultBillingShippingCustomerAddressTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
Step2. On *Customers* page choose customer from preconditions and open it to edit
3131
Step3. Open *Addresses* tab on edit customer page and press *Add New Address* button
3232
<!- -->
33-
<amOnPage url="{{AdminCustomerPage.url}}" stepKey="openCustomersGridPage"/>
33+
<actionGroup ref="AdminOpenCustomersGridActionGroup" stepKey="openCustomersGridPage"/>
3434
<actionGroup ref="OpenEditCustomerFromAdminActionGroup" stepKey="openEditCustomerPage">
3535
<argument name="customer" value="Simple_US_Customer_Multiple_Addresses"/>
3636
</actionGroup>

0 commit comments

Comments
 (0)