CreateCustomVariableActionGroup.xml 2.0 KB

12345678910111213141516171819202122232425262728293031
  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="CreateCustomVariableActionGroup">
  11. <amOnPage url="admin/admin/system_variable/new/" stepKey="goToNewCustomVarialePage" />
  12. <waitForPageLoad stepKey="waitForPageLoad" />
  13. <fillField selector="{{CustomVariableSection.variableCode}}" userInput="{{customVariable.code}}" stepKey="fillVariableCode" />
  14. <fillField selector="{{CustomVariableSection.variableName}}" userInput="{{customVariable.name}}" stepKey="fillVariableName" />
  15. <fillField selector="{{CustomVariableSection.variableHTML}}" userInput="{{customVariable.html}}" stepKey="fillVariableHtml" />
  16. <fillField selector="{{CustomVariableSection.variablePlain}}" userInput="{{customVariable.plain}}" stepKey="fillVariablePlain" />
  17. <click selector="{{CustomVariableSection.saveCustomVariable}}" stepKey="clickSaveVariable"/>
  18. </actionGroup>
  19. <actionGroup name="DeleteCustomVariableActionGroup">
  20. <amOnPage url="admin/admin/system_variable/" stepKey="goToVarialeGrid" />
  21. <waitForPageLoad stepKey="waitForPageLoad1" />
  22. <click selector="{{CustomVariableSection.GridCustomVariableCode(customVariable.code)}}" stepKey="goToCustomVariableEditPage" />
  23. <waitForPageLoad stepKey="waitForPageLoad2" />
  24. <waitForElementVisible selector="{{CustomVariableSection.delete}}" stepKey="waitForDeleteBtn" />
  25. <click selector="{{CustomVariableSection.delete}}" stepKey="deleteCustomVariable" />
  26. <waitForText userInput="Are you sure you want to do this?" stepKey="waitForText" />
  27. <click selector="{{CustomVariableSection.confirmDelete}}" stepKey="confirmDelete" />
  28. <waitForPageLoad stepKey="waitForPageLoad3" />
  29. </actionGroup>
  30. </actionGroups>