|
71 | 71 | <see selector="{{AdminStoresGridSection.nthRow('1')}}" userInput="{{storeGroupName}}" stepKey="seeAssertStoreGroupInGridMessage"/>
|
72 | 72 | </actionGroup>
|
73 | 73 |
|
| 74 | + <actionGroup name="EditStoreGroupActionGroup"> |
| 75 | + <annotations> |
| 76 | + <description>Edit store group.</description> |
| 77 | + </annotations> |
| 78 | + <arguments> |
| 79 | + <argument name="storeGroupName" type="string"/> |
| 80 | + </arguments> |
| 81 | + <amOnPage url="{{AdminSystemStorePage.url}}" stepKey="amOnAdminSystemStorePage"/> |
| 82 | + <waitForPageLoad stepKey="waitForAdminSystemStorePageLoad"/> |
| 83 | + <click selector="{{AdminStoresGridSection.resetButton}}" stepKey="resetSearchFilter"/> |
| 84 | + <waitForPageLoad stepKey="waitForResetResult"/> |
| 85 | + <fillField userInput="{{storeGroupName}}" selector="{{AdminStoresGridSection.storeGrpFilterTextField}}" stepKey="fillStoreGroupFilter"/> |
| 86 | + <click selector="{{AdminStoresGridSection.searchButton}}" stepKey="clickSearchButton"/> |
| 87 | + <waitForPageLoad stepKey="waitForSearchResult"/> |
| 88 | + <click selector="{{AdminStoresGridSection.storeGrpNameInFirstRow}}" stepKey="clicksStoreGroupName"/> |
| 89 | + <waitForPageLoad stepKey="waitForStorePageToLoad"/> |
| 90 | + </actionGroup> |
| 91 | + |
| 92 | + <actionGroup name="ChangeDefaultStoreViewActionGroup" extends="EditStoreGroupActionGroup"> |
| 93 | + <annotations> |
| 94 | + <description>Change the default store view for provided store group.</description> |
| 95 | + </annotations> |
| 96 | + <arguments> |
| 97 | + <argument name="storeViewName" type="string"/> |
| 98 | + </arguments> |
| 99 | + <selectOption selector="{{AdminEditStoreGroupSection.defaultStoreView}}" userInput="{{storeViewName}}" stepKey="changeDefaultStoreView" after="waitForStorePageToLoad"/> |
| 100 | + <click selector="{{AdminStoreGroupActionsSection.saveButton}}" stepKey="clickSaveStoreGroup"/> |
| 101 | + <waitForElementVisible selector="{{AdminConfirmationModalSection.ok}}" stepKey="waitForModal"/> |
| 102 | + <see selector="{{AdminConfirmationModalSection.title}}" userInput="Warning message" stepKey="seeWarningAboutTakingALongTimeToComplete"/> |
| 103 | + <click selector="{{AdminConfirmationModalSection.ok}}" stepKey="confirmModal"/> |
| 104 | + <waitForElementVisible selector="{{AdminMessagesSection.success}}" stepKey="seeForSuccessMessage"/> |
| 105 | + <see selector="{{AdminMessagesSection.success}}" userInput="You saved the store." stepKey="seeSuccessMessage"/> |
| 106 | + </actionGroup> |
| 107 | + |
| 108 | + <actionGroup name="AssertDefaultStoreViewActionGroup" extends="EditStoreGroupActionGroup"> |
| 109 | + <annotations> |
| 110 | + <description>Asserts that the provided store view is default in provided store group.</description> |
| 111 | + </annotations> |
| 112 | + <arguments> |
| 113 | + <argument name="storeViewName" type="string"/> |
| 114 | + </arguments> |
| 115 | + <seeOptionIsSelected selector="{{AdminEditStoreGroupSection.defaultStoreView}}" userInput="{{storeViewName}}" stepKey="assertDefaultStoreView" after="waitForStorePageToLoad"/> |
| 116 | + </actionGroup> |
| 117 | + |
74 | 118 | <actionGroup name="AssertStoreGroupForm">
|
75 | 119 | <annotations>
|
76 | 120 | <description>Clicks on the 1st Store in the 'Stores' grid. Validates that the provided Details (Website, Store Group Name, Store Group Code and Root Category) are present and correct.</description>
|
|
0 commit comments