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.
 
 
 
 
 
 

33 lines
2.0 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="StorefrontSelectOptionDateTimeActionGroup">
  11. <annotations>
  12. <description>Selects the provided Month, Day, Year, Hour, Minute and Part of Day for the provided Product Option on a Storefront product page.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="optionTitle" defaultValue="ProductOptionDateTime"/>
  16. <argument name="month" type="string"/>
  17. <argument name="day" type="string"/>
  18. <argument name="year" type="string"/>
  19. <argument name="hour" type="string"/>
  20. <argument name="minute" type="string"/>
  21. <argument name="dayPart" type="string"/>
  22. </arguments>
  23. <selectOption selector="{{StorefrontProductInfoMainSection.customOptionMonth(optionTitle.title)}}" userInput="{{month}}" stepKey="selectMonthForOptionDate"/>
  24. <selectOption selector="{{StorefrontProductInfoMainSection.customOptionDay(optionTitle.title)}}" userInput="{{day}}" stepKey="selectDayForOptionDate"/>
  25. <selectOption selector="{{StorefrontProductInfoMainSection.customOptionYear(optionTitle.title)}}" userInput="{{year}}" stepKey="selectYearForOptionDate"/>
  26. <selectOption selector="{{StorefrontProductInfoMainSection.customOptionHour(optionTitle.title)}}" userInput="{{hour}}" stepKey="selectHourrForOptionDateTime"/>
  27. <selectOption selector="{{StorefrontProductInfoMainSection.customOptionMinute(optionTitle.title)}}" userInput="{{minute}}" stepKey="selectMinuteForOptionDateTime"/>
  28. <selectOption selector="{{StorefrontProductInfoMainSection.customOptionDayPart(optionTitle.title)}}" userInput="{{dayPart}}" stepKey="selectDayPartForOptionDateTime"/>
  29. </actionGroup>
  30. </actionGroups>