|
45 | 45 | <!--Delete role-->
|
46 | 46 | <actionGroup name="AdminDeleteRoleActionGroup">
|
47 | 47 | <annotations>
|
48 |
| - <description>Deletes a User Role that contains the text 'Role'. PLEASE NOTE: The Action Group values are Hardcoded.</description> |
| 48 | + <description>Deletes a User Role.</description> |
49 | 49 | </annotations>
|
50 | 50 | <arguments>
|
51 | 51 | <argument name="role" defaultValue=""/>
|
52 | 52 | </arguments>
|
53 | 53 |
|
54 |
| - <click stepKey="clickOnRole" selector="{{AdminDeleteRoleSection.theRole}}"/> |
| 54 | + <click stepKey="clickResetFilterButtonBefore" selector="{{AdminRoleGridSection.resetButton}}"/> |
| 55 | + <waitForPageLoad stepKey="waitForRolesGridFilterResetBefore" time="10"/> |
| 56 | + <fillField stepKey="TypeRoleFilter" selector="{{AdminRoleGridSection.roleNameFilterTextField}}" userInput="{{role.name}}"/> |
| 57 | + <waitForElementVisible stepKey="waitForFilterSearchButtonBefore" selector="{{AdminRoleGridSection.searchButton}}" time="10"/> |
| 58 | + <click stepKey="clickFilterSearchButton" selector="{{AdminRoleGridSection.searchButton}}"/> |
| 59 | + <waitForPageLoad stepKey="waitForUserRoleFilter" time="10"/> |
| 60 | + <waitForElementVisible stepKey="waitForRoleInRoleGrid" selector="{{AdminDeleteRoleSection.role(role.name)}}" time="10"/> |
| 61 | + <click stepKey="clickOnRole" selector="{{AdminDeleteRoleSection.role(role.name)}}"/> |
| 62 | + <waitForPageLoad stepKey="waitForRolePageToLoad" time="10"/> |
55 | 63 | <fillField stepKey="TypeCurrentPassword" selector="{{AdminDeleteRoleSection.current_pass}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}"/>
|
| 64 | + <waitForElementVisible stepKey="waitForDeleteRoleButton" selector="{{AdminDeleteRoleSection.delete}}" time="10"/> |
56 | 65 | <click stepKey="clickToDeleteRole" selector="{{AdminDeleteRoleSection.delete}}"/>
|
57 |
| - <waitForAjaxLoad stepKey="waitForDeleteConfirmationPopup" time="5"/> |
| 66 | + <waitForPageLoad stepKey="waitForDeleteConfirmationPopup" time="5"/> |
| 67 | + <waitForElementVisible stepKey="waitForConfirmButton" selector="{{AdminDeleteRoleSection.confirm}}" time="10"/> |
58 | 68 | <click stepKey="clickToConfirm" selector="{{AdminDeleteRoleSection.confirm}}"/>
|
59 | 69 | <waitForPageLoad stepKey="waitForPageLoad" time="10"/>
|
60 | 70 | <see stepKey="seeSuccessMessage" userInput="You deleted the role."/>
|
| 71 | + <waitForPageLoad stepKey="waitForRolesGridLoad" /> |
| 72 | + <waitForElementVisible stepKey="waitForResetFilterButtonAfter" selector="{{AdminRoleGridSection.resetButton}}" time="10"/> |
| 73 | + <click stepKey="clickResetFilterButtonAfter" selector="{{AdminRoleGridSection.resetButton}}"/> |
| 74 | + <waitForPageLoad stepKey="waitForRolesGridFilterResetAfter" time="10"/> |
61 | 75 | </actionGroup>
|
62 | 76 | </actionGroups>
|
0 commit comments