Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

41 wiersze
2.5 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="AdminAddUrlRewriteActionGroup">
  11. <annotations>
  12. <description>Goes to the Admin Add URL Rewrite edit page. Fills in the provided URL details. Clicks on Save. Validates that the Success Message is present.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="category" type="string"/>
  16. <argument name="customUrlRewriteValue" type="string"/>
  17. <argument name="storeValue" type="string"/>
  18. <argument name="requestPath" type="string"/>
  19. <argument name="redirectTypeValue" type="string"/>
  20. <argument name="description" type="string"/>
  21. </arguments>
  22. <amOnPage url="{{AdminUrlRewriteEditPage.url('')}}" stepKey="openUrlRewriteEditPage"/>
  23. <waitForPageLoad stepKey="waitForUrlRewriteEditPageToLoad"/>
  24. <click selector="{{AdminUrlRewriteEditSection.createCustomUrlRewrite}}" stepKey="clickOnCustonUrlRewrite"/>
  25. <click selector="{{AdminUrlRewriteEditSection.createCustomUrlRewriteValue('customUrlRewriteValue')}}" stepKey="selectForCategory"/>
  26. <waitForPageLoad stepKey="waitForCategoryEditSectionToLoad"/>
  27. <click selector="{{AdminUrlRewriteEditSection.categoryInTree(category)}}" stepKey="selectCategoryInTree"/>
  28. <waitForPageLoad stepKey="waitForPageToLoad"/>
  29. <click selector="{{AdminUrlRewriteEditSection.store}}" stepKey="clickOnStore"/>
  30. <click selector="{{AdminUrlRewriteEditSection.storeValue('storeValue')}}" stepKey="clickOnStoreValue"/>
  31. <fillField selector="{{AdminUrlRewriteEditSection.requestPath}}" userInput="{{requestPath}}" stepKey="fillRequestPath"/>
  32. <click selector="{{AdminUrlRewriteEditSection.redirectType}}" stepKey="selectRedirectType"/>
  33. <click selector="{{AdminUrlRewriteEditSection.redirectTypeValue('redirectTypeValue')}}" stepKey="clickOnRedirectTypeValue"/>
  34. <fillField selector="{{AdminUrlRewriteEditSection.description}}" userInput="{{description}}" stepKey="fillDescription"/>
  35. <click selector="{{AdminUrlRewriteEditSection.saveButton}}" stepKey="clickOnSaveButton"/>
  36. <seeElement selector="{{AdminMessagesSection.success}}" stepKey="seeSuccessSaveMessage"/>
  37. </actionGroup>
  38. </actionGroups>