|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
11 |
| - <test name="VerifyDisabledCustomerGroupFieldTest"> |
| 11 | + <test name="AdminVerifyDisabledCustomerGroupFieldTest"> |
12 | 12 | <annotations>
|
13 | 13 | <stories value="Check that field is disabled in system Customer Group"/>
|
14 | 14 | <title value="Check that field is disabled in system Customer Group"/>
|
|
19 | 19 | <group value="mtf_migrated"/>
|
20 | 20 | </annotations>
|
21 | 21 |
|
22 |
| - <!-- Steps --> |
23 |
| - <!-- 1. Login to backend as admin user --> |
24 |
| - <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
25 |
| - <waitForPageLoad stepKey="waitForAdminPageLoad" /> |
| 22 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
26 | 23 |
|
27 |
| - <!-- 2. Navigate to Customers > Customer Groups --> |
28 |
| - <amOnPage url="{{AdminCustomerGroupPage.url}}" stepKey="amOnCustomerGroupPage" /> |
29 |
| - <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clearFiltersIfTheySet"/> |
| 24 | + <actionGroup ref="AdminNavigateToCustomerGroupPageActionGroup" stepKey="amOnCustomerGroupPage"/> |
| 25 | + <actionGroup ref="AdminFilterCustomerGroupByNameActionGroup" stepKey="clearFiltersIfTheySet"> |
| 26 | + <argument name="customerGroupName" value="{{NotLoggedInCustomerGroup.code}}"/> |
| 27 | + </actionGroup> |
30 | 28 |
|
31 |
| - <!-- 3. Select system Customer Group specified in data set from grid --> |
32 |
| - <click selector="{{AdminCustomerGroupMainSection.editButtonByCustomerGroupCode(NotLoggedInCustomerGroup.code)}}" stepKey="clickOnEditCustomerGroup" /> |
| 29 | + <actionGroup ref="AdminGridCustomerGroupEditByCodeActionGroup" stepKey="openCustomerGroup"> |
| 30 | + <argument name="customerGroupCode" value="{{NotLoggedInCustomerGroup.code}}"/> |
| 31 | + </actionGroup> |
33 | 32 |
|
34 |
| - <!-- 4. Perform all assertions --> |
35 | 33 | <seeInField selector="{{AdminNewCustomerGroupSection.groupName}}" userInput="{{NotLoggedInCustomerGroup.code}}" stepKey="seeNotLoggedInTextInGroupName" />
|
36 | 34 | <assertElementContainsAttribute selector="{{AdminNewCustomerGroupSection.groupName}}" attribute="disabled" expectedValue="true" stepKey="checkIfGroupNameIsDisabled" />
|
| 35 | + |
| 36 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/> |
37 | 37 | </test>
|
38 | 38 | </tests>
|
0 commit comments