AdminStoreGroupCreateActionGroup.xml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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="AdminStoreGroupCreateActionGroup">
  11. <arguments>
  12. <argument name="Website" defaultValue="_defaultWebsite"/>
  13. <argument name="storeGroup"/>
  14. </arguments>
  15. <amOnPage url="{{AdminSystemStoreGroupPage.url}}" stepKey="navigateToNewStoreGroup"/>
  16. <waitForPageLoad stepKey="waitForStoreGroupPageLoad" />
  17. <comment userInput="Creating Store Group" stepKey="storeGroupCreationComment" />
  18. <selectOption selector="{{AdminNewStoreGroupSection.storeGrpWebsiteDropdown}}" userInput="{{Website.name}}" stepKey="selectWebsite" />
  19. <fillField selector="{{AdminNewStoreGroupSection.storeGrpNameTextField}}" userInput="{{storeGroup.name}}" stepKey="enterStoreGroupName" />
  20. <fillField selector="{{AdminNewStoreGroupSection.storeGrpCodeTextField}}" userInput="{{storeGroup.code}}" stepKey="enterStoreGroupCode" />
  21. <selectOption selector="{{AdminNewStoreGroupSection.storeRootCategoryDropdown}}" userInput="Default Category" stepKey="setRootCategory" />
  22. <click selector="{{AdminNewStoreGroupActionsSection.saveButton}}" stepKey="clickSaveStoreGroup" />
  23. <waitForElementVisible selector="{{AdminStoresGridSection.storeFilterTextField}}" stepKey="waitForPageReload"/>
  24. <see userInput="You saved the store." stepKey="seeSavedMessage" />
  25. </actionGroup>
  26. <actionGroup name="AdminAddCustomWebSiteToStoreGroup">
  27. <arguments>
  28. <argument name="storeGroup" defaultValue="customStoreGroup"/>
  29. <argument name="website" defaultValue="customWebsite"/>
  30. </arguments>
  31. <amOnPage url="{{AdminSystemStorePage.url}}" stepKey="amOnAdminSystemStorePage"/>
  32. <click selector="{{AdminStoresGridSection.resetButton}}" stepKey="resetSearchFilter"/>
  33. <fillField userInput="{{storeGroup.name}}" selector="{{AdminStoresGridSection.storeGrpFilterTextField}}" stepKey="fillSearchStoreGroupField"/>
  34. <click selector="{{AdminStoresGridSection.searchButton}}" stepKey="clickSearchButton"/>
  35. <see userInput="{{storeGroup.name}}" selector="{{AdminStoresGridSection.storeGrpNameInFirstRow}}" stepKey="verifyThatCorrectStoreGroupFound"/>
  36. <click selector="{{AdminStoresGridSection.storeGrpNameInFirstRow}}" stepKey="clickEditExistingStoreRow"/>
  37. <waitForPageLoad stepKey="waitForStoreGroupPageLoad" />
  38. <selectOption selector="{{AdminNewStoreGroupSection.storeGrpWebsiteDropdown}}" userInput="{{website.name}}" stepKey="selectWebsite" />
  39. <selectOption selector="{{AdminNewStoreGroupSection.storeRootCategoryDropdown}}" userInput="Default Category" stepKey="chooseRootCategory" />
  40. <click selector="{{AdminNewStoreGroupActionsSection.saveButton}}" stepKey="clickSaveStoreGroup" />
  41. <conditionalClick selector="{{AdminNewStoreGroupSection.acceptNewStoreGroupCreation}}" dependentSelector="{{AdminNewStoreGroupSection.acceptNewStoreGroupCreation}}" visible="true" stepKey="clickAcceptNewStoreGroupCreationButton"/>
  42. <waitForElementVisible selector="{{AdminStoresGridSection.storeFilterTextField}}" stepKey="waitForPageReload"/>
  43. <see userInput="You saved the store." stepKey="seeSavedMessage" />
  44. </actionGroup>
  45. </actionGroups>