You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
1.7 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="AdminQueueNewsletterActionGroup">
  11. <annotations>
  12. <description>
  13. Sends Newsletter template to queue:
  14. Clicks the Queue Newsletter action.
  15. Sets Queue Date Start.
  16. Selects needed Store view if applicable.
  17. Clicks the Save and Resume button.
  18. </description>
  19. </annotations>
  20. <arguments>
  21. <argument name="startAt" type="string"/>
  22. <argument name="storeView" type="string" defaultValue="Default Store View"/>
  23. </arguments>
  24. <click selector="{{AdminNewsletterGridMainActionsSection.action}}" stepKey="clickActionDropdown"/>
  25. <click selector="{{AdminNewsletterGridMainActionsSection.queueNewsletterOption}}" stepKey="cliclkQueueNewsletterOption"/>
  26. <fillField selector="{{QueueInformationSection.queueStartFrom}}" userInput="{{startAt}}" stepKey="setDate"/>
  27. <conditionalClick selector="{{QueueInformationSection.subscriberFromOption(storeView)}}" dependentSelector="{{QueueInformationSection.subscriberFromOption(storeView)}}" visible="true" stepKey="setStoreview"/>
  28. <click selector="{{AdminNewsletterMainActionsSection.saveAndResumeButton}}" stepKey="clickSaveAndResumeButton"/>
  29. <see userInput="You saved the newsletter queue." stepKey="seeSuccessMessage"/>
  30. </actionGroup>
  31. </actionGroups>