GeneralConfigurationActionGroup.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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="NavigateToDefaultLayoutsSetting">
  11. <amOnPage url="{{WebConfigurationPage.url}}" stepKey="navigateToWebConfigurationPage"/>
  12. <waitForPageLoad stepKey="waitForPageLoad"/>
  13. <conditionalClick stepKey="expandDefaultLayouts" selector="{{WebSection.DefaultLayoutsTab}}" dependentSelector="{{WebSection.CheckIfTabExpand}}" visible="true" />
  14. <waitForElementVisible selector="{{DefaultLayoutsSection.categoryLayout}}" stepKey="waittForDefaultCategoryLayout" />
  15. </actionGroup>
  16. <actionGroup name="NavigateToConfigurationGeneralPage">
  17. <amOnPage url="{{AdminConfigGeneralPage.url}}" stepKey="navigateToConfigGeneralPage"/>
  18. <waitForPageLoad stepKey="waitForConfigPageLoad"/>
  19. </actionGroup>
  20. <actionGroup name="SelectTopDestinationsCountry">
  21. <arguments>
  22. <argument name="countries" type="countryArray"/>
  23. </arguments>
  24. <selectOption selector="{{CountryOptionsSection.topDestinations}}" parameterArray="[{{countries.country}}]" stepKey="selectTopDestinationsCountry"/>
  25. <click selector="#save" stepKey="saveConfig"/>
  26. <waitForPageLoad stepKey="waitForSavingConfig"/>
  27. </actionGroup>
  28. <actionGroup name="UnSelectTopDestinationsCountry">
  29. <arguments>
  30. <argument name="countries" type="countryArray"/>
  31. </arguments>
  32. <unselectOption selector="{{CountryOptionsSection.topDestinations}}" parameterArray="[{{countries.country}}]" stepKey="unSelectTopDestinationsCountry"/>
  33. <click selector="#save" stepKey="saveConfig"/>
  34. <waitForPageLoad stepKey="waitForSavingConfig"/>
  35. </actionGroup>
  36. <actionGroup name="SelectCountriesWithRequiredRegion">
  37. <arguments>
  38. <argument name="countries" type="countryArray"/>
  39. </arguments>
  40. <amOnPage url="{{AdminConfigGeneralPage.url}}" stepKey="navigateToAdminConfigGeneralPage"/>
  41. <conditionalClick selector="{{StateOptionsSection.stateOptions}}" dependentSelector="{{StateOptionsSection.countriesWithRequiredRegions}}" visible="false" stepKey="expandStateOptionsTab" />
  42. <waitForAjaxLoad stepKey="waitForAjax"/>
  43. <scrollTo selector="{{StateOptionsSection.countriesWithRequiredRegions}}" stepKey="scrollToForm"/>
  44. <selectOption selector="{{StateOptionsSection.countriesWithRequiredRegions}}" parameterArray="[{{countries.country}}]" stepKey="selectCountriesWithRequiredRegion"/>
  45. <click selector="#save" stepKey="saveConfig"/>
  46. <waitForPageLoad stepKey="waitForSavingConfig"/>
  47. </actionGroup>
  48. </actionGroups>