Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

43 строки
2.8 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
  10. <actionGroup name="AdminDeleteRoleActionGroup">
  11. <annotations>
  12. <description>DEPRECATED. Deletes a User Role. ActionGroup duplicates existing 'AdminDeleteUserRoleActionGroup'</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="role" defaultValue=""/>
  16. </arguments>
  17. <amOnPage url="{{AdminRolesPage.url}}" stepKey="navigateToUserRoleGrid" />
  18. <waitForPageLoad stepKey="waitForRolesGridLoad" />
  19. <click stepKey="clickResetFilterButtonBefore" selector="{{AdminRoleGridSection.resetButton}}"/>
  20. <waitForPageLoad stepKey="waitForRolesGridFilterResetBefore" time="10"/>
  21. <fillField stepKey="TypeRoleFilter" selector="{{AdminRoleGridSection.roleNameFilterTextField}}" userInput="{{role.name}}"/>
  22. <waitForElementVisible stepKey="waitForFilterSearchButtonBefore" selector="{{AdminRoleGridSection.searchButton}}" time="10"/>
  23. <click stepKey="clickFilterSearchButton" selector="{{AdminRoleGridSection.searchButton}}"/>
  24. <waitForPageLoad stepKey="waitForUserRoleFilter" time="10"/>
  25. <waitForElementVisible stepKey="waitForRoleInRoleGrid" selector="{{AdminDeleteRoleSection.role(role.name)}}" time="10"/>
  26. <click stepKey="clickOnRole" selector="{{AdminDeleteRoleSection.role(role.name)}}"/>
  27. <waitForPageLoad stepKey="waitForRolePageToLoad" time="10"/>
  28. <fillField stepKey="TypeCurrentPassword" selector="{{AdminDeleteRoleSection.current_pass}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}"/>
  29. <waitForElementVisible stepKey="waitForDeleteRoleButton" selector="{{AdminDeleteRoleSection.delete}}" time="10"/>
  30. <click stepKey="clickToDeleteRole" selector="{{AdminDeleteRoleSection.delete}}"/>
  31. <waitForPageLoad stepKey="waitForDeleteConfirmationPopup" time="5"/>
  32. <waitForElementVisible stepKey="waitForConfirmButton" selector="{{AdminDeleteRoleSection.confirm}}" time="10"/>
  33. <click stepKey="clickToConfirm" selector="{{AdminDeleteRoleSection.confirm}}"/>
  34. <waitForPageLoad stepKey="waitForPageLoad" time="10"/>
  35. <see stepKey="seeSuccessMessage" userInput="You deleted the role."/>
  36. <waitForPageLoad stepKey="waitForRolesGridLoadAfterDelete" />
  37. <waitForElementVisible stepKey="waitForResetFilterButtonAfter" selector="{{AdminRoleGridSection.resetButton}}" time="10"/>
  38. <click stepKey="clickResetFilterButtonAfter" selector="{{AdminRoleGridSection.resetButton}}"/>
  39. <waitForPageLoad stepKey="waitForRolesGridFilterResetAfter" time="10"/>
  40. </actionGroup>
  41. </actionGroups>