DeletePageByUrlKeyActionGroup.xml 1.1 KB

1234567891011121314151617181920212223
  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="DeletePageByUrlKeyActionGroup">
  11. <arguments>
  12. <argument name="UrlKey" type="string"/>
  13. </arguments>
  14. <amOnPage url="{{CmsPagesPage.url}}" stepKey="amOnCMSNewPage"/>
  15. <waitForPageLoad stepKey="waitForPageLoad1"/>
  16. <click selector="{{CmsPagesPageActionsSection.select(UrlKey)}}" stepKey="clickSelect"/>
  17. <click selector="{{CmsPagesPageActionsSection.delete(UrlKey)}}" stepKey="clickDelete"/>
  18. <waitForElementVisible selector="{{CmsPagesPageActionsSection.deleteConfirm}}" stepKey="waitForOkButtonToBeVisible"/>
  19. <click selector="{{CmsPagesPageActionsSection.deleteConfirm}}" stepKey="clickOkButton"/>
  20. <waitForPageLoad stepKey="waitForPageLoad3"/>
  21. <see userInput="The page has been deleted." stepKey="seeSuccessMessage"/>
  22. </actionGroup>
  23. </actionGroups>