Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

41 wiersze
3.2 KiB

  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="AdminInsertRecentlyViewedWidgetActionGroup">
  11. <arguments>
  12. <argument name="attributeSelector1" type="string" defaultValue="show_attributes"/>
  13. <argument name="attributeSelector2" type="string" defaultValue="show_buttons"/>
  14. <argument name="productAttributeSection1" type="string" defaultValue="1"/>
  15. <argument name="productAttributeSection2" type="string" defaultValue="4" />
  16. <argument name="buttonToShowSection2" type="string" defaultValue="3" />
  17. </arguments>
  18. <conditionalClick selector="{{CmsNewPagePageActionsSection.contentSectionName}}" dependentSelector="{{CmsNewPagePageActionsSection.showHideEditor}}" visible="false" stepKey="expandContentSectionIfNotVisible"/>
  19. <waitForPageLoad time="30" stepKey="waitForPageLoadContentSection"/>
  20. <conditionalClick selector="{{CmsNewPagePageActionsSection.showHideEditor}}" dependentSelector="{{CatalogWidgetSection.insertWidgetButton}}" visible="false" stepKey="clickNextShowHideEditorIfVisible"/>
  21. <waitForElementVisible selector="{{CatalogWidgetSection.insertWidgetButton}}" stepKey="waitForInsertWidgetElement"/>
  22. <click selector="{{CatalogWidgetSection.insertWidgetButton}}" stepKey="clickInsertWidget"/>
  23. <waitForElementVisible selector="{{InsertWidgetSection.widgetTypeDropDown}}" time="30" stepKey="waitForWidgetTypeDropDownVisible"/>
  24. <!--Select "Widget Type"-->
  25. <selectOption selector="{{WidgetSection.WidgetType}}" userInput="Recently Viewed Products" stepKey="selectRecentlyViewedProducts"/>
  26. <waitForPageLoad time="30" stepKey="waitForPageLoadWidgetType"/>
  27. <!--Select all product attributes-->
  28. <dragAndDrop selector1="{{AdminRecentlyViewedWidgetSection.attributeSelector(attributeSelector1,productAttributeSection1)}}" selector2="{{AdminRecentlyViewedWidgetSection.attributeSelector(attributeSelector1,productAttributeSection2)}}" stepKey="selectProductSpecifiedOptions"/>
  29. <!--Select all buttons to show-->
  30. <dragAndDrop selector1="{{AdminRecentlyViewedWidgetSection.attributeSelector(attributeSelector2,buttonToShowSection2)}}" selector2="{{AdminRecentlyViewedWidgetSection.attributeSelector(attributeSelector2,buttonToShowSection2)}}" stepKey="selectButtonSpecifiedOptions"/>
  31. <click selector="{{WidgetSection.InsertWidget}}" stepKey="clickInsertWidgetToSave"/>
  32. <waitForPageLoad time="30" stepKey="waitForWidgetInsertPageLoad"/>
  33. <!-- Check that widget is inserted -->
  34. <waitForElementVisible selector="{{CmsNewPagePageContentSection.content}}" stepKey="checkCMSContent" time="30"/>
  35. <click selector="{{CmsNewPagePageActionsSection.saveAndContinueEdit}}" stepKey="clickNextSave"/>
  36. <waitForPageLoad stepKey="waitForPageActionSave" time="30"/>
  37. <waitForElementVisible selector="*[data-ui-id='messages-message-success']" time="60" stepKey="waitForSaveSuccess"/>
  38. </actionGroup>
  39. </actionGroups>