Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

59 строки
4.6 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="AssignBlockToCMSPage">
  11. <annotations>
  12. <description>Goes to the Admin Pages grid page. Adds a Block to a CMS Page. Clicks on Save.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="Block" defaultValue=""/>
  16. <argument name="CmsPage" defaultValue=""/>
  17. </arguments>
  18. <amOnPage url="{{CmsPagesPage.url}}" stepKey="amOnEditPage"/>
  19. <waitForPageLoad stepKey="waitForPageLoad1"/>
  20. <conditionalClick selector="{{CmsPagesPageActionsSection.clearAllButton}}" dependentSelector="{{CmsPagesPageActionsSection.activeFilters}}" stepKey="clickToResetFilter" visible="true"/>
  21. <waitForPageLoad stepKey="waitForGridReload"/>
  22. <conditionalClick selector="//div[contains(@data-role, 'grid-wrapper')]/table/thead/tr/th/span[contains(text(), 'ID')]" dependentSelector="//span[contains(text(), 'ID')]/parent::th[not(contains(@class, '_descend'))]/parent::tr/parent::thead/parent::table/parent::div[contains(@data-role, 'grid-wrapper')]" stepKey="clickToAttemptSortByIdDescending1" visible="true"/>
  23. <waitForLoadingMaskToDisappear stepKey="waitForFirstIdSortDescendingToFinish1"/>
  24. <!-- Conditional Click again in case it goes from default state to ascending on first click -->
  25. <conditionalClick selector="//div[contains(@data-role, 'grid-wrapper')]/table/thead/tr/th/span[contains(text(), 'ID')]" dependentSelector="//span[contains(text(), 'ID')]/parent::th[not(contains(@class, '_descend'))]/parent::tr/parent::thead/parent::table/parent::div[contains(@data-role, 'grid-wrapper')]" stepKey="secondClickToAttemptSortByIdDescending2" visible="true"/>
  26. <waitForLoadingMaskToDisappear stepKey="waitForSecondIdSortDescendingToFinish1"/>
  27. <waitForElementVisible selector="{{CmsPagesPageActionsSection.select(CmsPage.identifier)}}" stepKey="waitForCMSPageGrid"/>
  28. <click selector="{{CmsPagesPageActionsSection.select(CmsPage.identifier)}}" stepKey="clickSelect"/>
  29. <waitForElementVisible selector="{{CmsPagesPageActionsSection.edit(CmsPage.identifier)}}" stepKey="waitForEditLink"/>
  30. <click selector="{{CmsPagesPageActionsSection.edit(CmsPage.identifier)}}" stepKey="clickEdit"/>
  31. <waitForPageLoad stepKey="waitForPageLoad2"/>
  32. <click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickContentTab"/>
  33. <waitForElementVisible selector="{{TinyMCESection.TinyMCE}}" stepKey="waitForTinyMCE"/>
  34. <seeElement selector="{{TinyMCESection.InsertWidgetIcon}}" stepKey="seeWidgetIcon"/>
  35. <click selector="{{TinyMCESection.InsertWidgetIcon}}" stepKey="clickInsertWidgetIcon"/>
  36. <waitForPageLoad stepKey="waitForPageLoad3"/>
  37. <selectOption selector="{{WidgetSection.WidgetType}}" userInput="CMS Static Block" stepKey="selectCMSStaticBlock"/>
  38. <waitForLoadingMaskToDisappear stepKey="waitForLoading1"/>
  39. <selectOption selector="{{WidgetSection.WidgetTemplate}}" userInput="CMS Static Block Default Template" stepKey="selectTemplate"/>
  40. <click selector="{{WidgetSection.BtnChooser}}" stepKey="clickSelectPageBtn"/>
  41. <waitForLoadingMaskToDisappear stepKey="waitForLoading2"/>
  42. <fillField selector="//input[@name='chooser_identifier']" userInput="{{Block.identifier}}" stepKey="fillBlockIdentifier"/>
  43. <click selector="//div[@class='modal-inner-wrap']//button[@title='Search']" stepKey="clickSearchBtn"/>
  44. <waitForLoadingMaskToDisappear stepKey="waitForSecondIdSortDescendingToFinish2"/>
  45. <waitForElementVisible selector="{{WidgetSection.BlockPage(Block.identifier)}}" stepKey="waitForBlockTitle"/>
  46. <click selector="{{WidgetSection.BlockPage(Block.identifier)}}" stepKey="selectPreCreateBlock"/>
  47. <wait time="3" stepKey="wait1"/>
  48. <click selector="{{WidgetSection.InsertWidget}}" stepKey="clickInsertWidgetBtn"/>
  49. <waitForLoadingMaskToDisappear stepKey="waitForLoading3"/>
  50. <waitForPageLoad stepKey="waitForPageLoad4"/>
  51. <click selector="{{CmsNewPagePageActionsSection.expandSplitButton}}" stepKey="expandButtonMenu"/>
  52. <waitForElementVisible selector="{{CmsNewPagePageActionsSection.splitButtonMenu}}" stepKey="waitForSplitButtonMenuVisible"/>
  53. <click selector="{{CmsNewPagePageActionsSection.savePage}}" stepKey="clickSavePage"/>
  54. </actionGroup>
  55. </actionGroups>