AdminCreateNewStoreGroupActionGroup.xml 1.7 KB

12345678910111213141516171819202122232425262728
  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. <!-- Admin creates new Store group -->
  9. <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  10. xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
  11. <actionGroup name="AdminCreateNewStoreGroupActionGroup">
  12. <arguments>
  13. <argument name="website" type="string"/>
  14. <argument name="storeGroupName" type="string"/>
  15. <argument name="storeGroupCode" type="string"/>
  16. </arguments>
  17. <amOnPage url="{{AdminSystemStoreGroupPage.url}}" stepKey="navigateToNewStoreView"/>
  18. <waitForPageLoad stepKey="waitForPageLoad1" />
  19. <!--Create Store group -->
  20. <selectOption selector="{{AdminNewStoreGroupSection.storeGrpWebsiteDropdown}}" userInput="{{website}}" stepKey="selectWebsite" />
  21. <fillField selector="{{AdminNewStoreGroupSection.storeGrpNameTextField}}" userInput="{{storeGroupName}}" stepKey="enterStoreGroupName" />
  22. <fillField selector="{{AdminNewStoreGroupSection.storeGrpCodeTextField}}" userInput="{{storeGroupCode}}" stepKey="enterStoreGroupCode" />
  23. <selectOption selector="{{AdminNewStoreGroupSection.storeRootCategoryDropdown}}" userInput="Default Category" stepKey="chooseRootCategory" />
  24. <click selector="{{AdminStoreGroupActionsSection.saveButton}}" stepKey="clickSaveStoreGroup" />
  25. <waitForElementVisible selector="{{AdminStoresGridSection.storeGrpFilterTextField}}" stepKey="waitForStoreGridReload"/>
  26. <see userInput="You saved the store." stepKey="seeSavedMessage" />
  27. </actionGroup>
  28. </actionGroups>