AdminConfigCreateNewAccountActionGroup.xml 1.5 KB

12345678910111213141516171819202122232425
  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="SetGroupForValidVATIdIntraUnionActionGroup">
  11. <arguments>
  12. <argument name="value" type="string"/>
  13. </arguments>
  14. <amOnPage url="{{AdminStoresCustomerConfigurationPage.url}}" stepKey="navigateToCustomerConfigurationPage" />
  15. <waitForPageLoad stepKey="waitForPageLoad"/>
  16. <conditionalClick stepKey="expandCreateNewAccountOptionsTab" selector="{{AdminStoresCustomerConfigurationSection.createNewAccOpt}}" dependentSelector="{{AdminStoresCustomerConfigurationSection.enableAutoAssignCustomerGroup}}" visible="false"/>
  17. <waitForElementVisible selector="{{AdminStoresCustomerConfigurationSection.createNewAccOpt}}" stepKey="waitForElementsAppeared"/>
  18. <selectOption selector="{{AdminStoresCustomerConfigurationSection.groupForValidVATIdIntraUnion}}" userInput="{{value}}" stepKey="selectValue"/>
  19. <click selector="{{AdminStoresCustomerConfigurationSection.createNewAccOpt}}" stepKey="collapseTab" />
  20. <click selector="{{ContentManagementSection.Save}}" stepKey="saveConfig"/>
  21. <waitForPageLoad stepKey="waitForConfigSaved"/>
  22. <see userInput="You saved the configuration." stepKey="seeSuccessMessage"/>
  23. </actionGroup>
  24. </actionGroups>