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

34 строки
2.1 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="ReviewOrderForMultiShipmentActionGroup">
  11. <arguments>
  12. <argument name="totalNameForFirstOrder" type="string" defaultValue="Shipping &amp; Handling"/>
  13. <argument name="totalPositionForFirstOrder" type="string" defaultValue="1"/>
  14. <argument name="totalNameForSecondOrder" type="string" defaultValue="Shipping &amp; Handling"/>
  15. <argument name="totalPositionForSecondOrder" type="string" defaultValue="2"/>
  16. </arguments>
  17. <!--Check First Shipping Method Price-->
  18. <grabTextFrom selector="{{ReviewOrderSection.shippingMethodBasePrice(totalPositionForFirstOrder)}}" stepKey="firstShippingMethodBasePrice"/>
  19. <grabTextFrom selector="{{ReviewOrderSection.shippingMethodSubtotalPrice(totalPositionForFirstOrder,totalNameForFirstOrder)}}" stepKey="firstShippingMethodSubtotalPrice"/>
  20. <assertEquals stepKey="assertShippingMethodPrice">
  21. <expectedResult type="string">$firstShippingMethodSubtotalPrice</expectedResult>
  22. <actualResult type="string">$firstShippingMethodBasePrice</actualResult>
  23. </assertEquals>
  24. <!--Check Second Shipping Method Price-->
  25. <grabTextFrom selector="{{ReviewOrderSection.shippingMethodBasePrice(totalPositionForSecondOrder)}}" stepKey="secondShippingMethodBasePrice"/>
  26. <grabTextFrom selector="{{ReviewOrderSection.shippingMethodSubtotalPrice(totalPositionForSecondOrder,totalNameForSecondOrder)}}" stepKey="secondShippingMethodSubtotalPrice"/>
  27. <assertEquals stepKey="assertSecondShippingMethodPrice" >
  28. <expectedResult type="string">$secondShippingMethodSubtotalPrice</expectedResult>
  29. <actualResult type="string">$secondShippingMethodBasePrice</actualResult>
  30. </assertEquals>
  31. </actionGroup>
  32. </actionGroups>