EnableDisableProductActionGroup.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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="AncillaryPrepBundleProduct">
  11. <!--Prereq: go to bundle product creation page-->
  12. <fillField selector="{{AdminProductFormBundleSection.productName}}" userInput="{{BundleProduct.name}}" stepKey="fillProductName"/>
  13. <fillField selector="{{AdminProductFormBundleSection.productSku}}" userInput="{{BundleProduct.sku}}" stepKey="fillProductSku"/>
  14. <!--Trigger SEO drop down-->
  15. <scrollTo selector="{{AdminProductFormBundleSection.seoDropdown}}" stepKey="moveToSEOSection"/>
  16. <conditionalClick selector="{{AdminProductFormBundleSection.seoDropdown}}" dependentSelector="{{AdminProductFormBundleSection.urlKey}}" visible="false" stepKey="openDropDownIfClosed"/>
  17. <waitForPageLoad stepKey="WaitForDropDownSEO"/>
  18. <!--Fill URL input-->
  19. <fillField userInput="{{BundleProduct.urlKey}}" selector="{{AdminProductFormBundleSection.urlKey}}" stepKey="FillsinSEOlinkExtension"/>
  20. </actionGroup>
  21. <!--Edit existing product by searching in product catalog-->
  22. <actionGroup name="FindProductToEdit">
  23. <amOnPage url="{{ProductCatalogPage.url}}" stepKey="GoToProductCatalog"/>
  24. <waitForPageLoad stepKey="WaitForCatalogProductPageToLoad"/>
  25. <conditionalClick selector="{{AdminProductGridFilterSection.clearFilters}}" dependentSelector="{{AdminProductGridFilterSection.clearFilters}}" visible="true" stepKey="clickClearFiltersInitial"/>
  26. <fillField userInput="{{BundleProduct.name}}" selector="#fulltext" stepKey="EnterProductNameInSearch"/>
  27. <click stepKey="ClickSearch" selector="{{AdminProductFormBundleSection.searchButton}}"/>
  28. <click stepKey="ClickOnProduct" selector="{{AdminProductFormBundleSection.firstCatalogProduct}}"/>
  29. <waitForPageLoad stepKey="WaitForProductEditPageToLoad"/>
  30. </actionGroup>
  31. </actionGroups>