|
74 | 74 | <see selector="{{AdminStoresGridSection.emptyText}}" userInput="We couldn't find any records." stepKey="seeAssertStoreViewNotInGridMessage"/> |
75 | 75 | </actionGroup> |
76 | 76 |
|
77 | | - <actionGroup name="AdminDeleteStoreViewIfExistsActionGroup"> |
| 77 | + <actionGroup name="AdminSearchStoreViewByNameActionGroup"> |
78 | 78 | <annotations> |
79 | | - <description>Goes to the Admin Stores grid page. Deletes the provided Store (if exists) without creating a Backup. Validates that the Success Message is present and correct.</description> |
| 79 | + <description>Goes to the Admin Stores grid page. Clears filters and search by store view name.</description> |
80 | 80 | </annotations> |
81 | 81 | <arguments> |
82 | 82 | <argument name="storeViewName" type="string"/> |
83 | 83 | </arguments> |
84 | 84 |
|
85 | 85 | <amOnPage url="{{AdminSystemStorePage.url}}" stepKey="amOnAdminSystemStorePage"/> |
86 | | - <click selector="{{AdminStoresGridSection.resetButton}}" stepKey="resetSearchFilter"/> |
| 86 | + <click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="resetSearchFilter"/> |
87 | 87 | <fillField selector="{{AdminStoresGridSection.storeFilterTextField}}" userInput="{{storeViewName}}" stepKey="fillSearchStoreViewField"/> |
88 | | - <click selector="{{AdminStoresGridSection.searchButton}}" stepKey="clickSearchButton"/> |
| 88 | + <click selector="{{AdminDataGridHeaderSection.applyFilters}}" stepKey="clickSearchButton"/> |
| 89 | + </actionGroup> |
| 90 | + |
| 91 | + <actionGroup name="AdminDeleteStoreViewIfExistsActionGroup" extends="AdminSearchStoreViewByNameActionGroup"> |
| 92 | + <annotations> |
| 93 | + <description>EXTENDS: AdminSearchStoreViewByNameActionGroup. Goes to the Admin Stores grid page. Deletes the provided Store (if exists) without creating a Backup. Validates that the Success Message is present and correct.</description> |
| 94 | + </annotations> |
| 95 | + <arguments> |
| 96 | + <argument name="storeViewName" type="string"/> |
| 97 | + </arguments> |
89 | 98 |
|
90 | 99 | <executeInSelenium function="function($webdriver) use ($I) { |
91 | 100 | $items = $webdriver->findElements(\Facebook\WebDriver\WebDriverBy::cssSelector('.col-store_title>a')); |
|
103 | 112 | $I->waitForElementVisible('#messages div.message-success', 10); |
104 | 113 | $I->see('You deleted the store view.', '#messages div.message-success'); |
105 | 114 | } |
106 | | - }" stepKey="deleteStoreViewIfExists"/> |
| 115 | + }" after="clickSearchButton" stepKey="deleteStoreViewIfExists"/> |
107 | 116 | </actionGroup> |
108 | | - |
109 | 117 | </actionGroups> |
0 commit comments