|
7 | 7 | -->
|
8 | 8 |
|
9 | 9 | <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 |
| - xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> |
| 10 | + xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd"> |
11 | 11 | <actionGroup name="AdminDeleteCustomerGroupActionGroup">
|
12 | 12 | <arguments>
|
13 | 13 | <argument name="customerGroupName" type="string"/>
|
14 | 14 | </arguments>
|
15 |
| - <amOnPage url="{{AdminCustomerGroupPage.url}}" stepKey="navigateToCustomersGroupPage"/> |
16 |
| - <waitForPageLoad stepKey="waitForPageOpened"/> |
17 |
| - <click stepKey="clickFiltersBtn" selector="{{AdminCustomerGroupMainSection.filterBtn}}"/> |
18 |
| - <fillField selector="{{AdminCustomerGroupMainSection.groupField}}" userInput="{{groupName}}" stepKey="fillFieldGroupName"/> |
19 |
| - <click stepKey="clickApplyBtn" selector="{{AdminCustomerGroupMainSection.applyFiltersBtn}}"/> |
20 |
| - <!--Here we need to use Implicit wait.--> |
21 |
| - <wait stepKey="waitForFilteringFinished" time="2"/> |
22 |
| - <click stepKey="clickSelectBtn" selector="{{AdminCustomerGroupMainSection.selectFirstRow}}"/> |
23 |
| - <wait stepKey="waitForDropDownOpened" time="2"/> |
24 |
| - <click stepKey="clickDeleteBtn" selector="{{AdminCustomerGroupMainSection.deleteBtn}}"/> |
25 |
| - <waitForPageLoad stepKey="waitForConfirmationAlert"/> |
26 |
| - <click stepKey="accept" selector="{{AdminCustomerGridMainActionsSection.ok}}"/> |
27 |
| - <see stepKey="seeSuccessMessage" userInput="You deleted the customer group."/> |
28 |
| - <wait stepKey="waitForClearAllBtnVisible" time="2"/> |
29 |
| - <click stepKey="clearAllBtn" selector="{{AdminCustomerGroupMainSection.clearAllBtn}}"/> |
30 |
| - <waitForElementNotVisible selector="{{AdminCustomerGroupMainSection.clearAllBtn}}" stepKey="waitForElementNotVisible"/> |
| 15 | + <amOnPage url="{{AdminCustomerGroupsIndexPage.url}}" stepKey="goToAdminCustomerGroupIndexPage"/> |
| 16 | + <waitForPageLoad time="30" stepKey="waitForCustomerGroupIndexPageLoad"/> |
| 17 | + <click selector="{{AdminDataGridHeaderSection.filters}}" stepKey="openFiltersSectionOnCustomerGroupIndexPage"/> |
| 18 | + <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="cleanFiltersIfTheySet"/> |
| 19 | + <fillField userInput="{{customerGroupName}}" selector="{{AdminDataGridHeaderSection.filterFieldInput('customer_group_code')}}" stepKey="fillNameFieldOnFiltersSection"/> |
| 20 | + <click selector="{{AdminDataGridHeaderSection.applyFilters}}" stepKey="clickApplyFiltersButton"/> |
| 21 | + <click selector="{{AdminCustomerGroupGridActionsSection.selectButton('customerGroupName')}}" stepKey="clickSelectButton"/> |
| 22 | + <click selector="{{AdminCustomerGroupGridActionsSection.deleteAction('customerGroupName')}}" stepKey="clickOnDeleteItem"/> |
| 23 | + <click selector="{{AdminConfirmationModalSection.ok}}" stepKey="confirmDeleteCustomerGroup"/> |
| 24 | + <seeElement selector="{{AdminMessagesSection.success}}" stepKey="seeSuccessMessage"/> |
31 | 25 | </actionGroup>
|
32 | 26 | </actionGroups>
|
0 commit comments