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

32 строки
1.8 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="AssertStorefrontCheckoutCartEstimateShippingAndTaxAddressActionGroup">
  11. <annotations>
  12. <description>Check address data in Estimate Shipping And Tax section of shopping cart on storefront</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="country" type="string" defaultValue="{{US_Address_TX.country}}"/>
  16. <argument name="state" type="string" defaultValue="{{US_Address_TX.state}}"/>
  17. <argument name="postcode" type="string" defaultValue="{{US_Address_TX.postcode}}"/>
  18. </arguments>
  19. <waitForElementVisible selector="{{CheckoutCartSummarySection.subtotal}}" stepKey="waitForSubtotalVisible"/>
  20. <conditionalClick selector="{{CheckoutCartSummarySection.estimateShippingAndTax}}" dependentSelector="{{CheckoutCartSummarySection.country}}" visible="false" stepKey="expandEstimateShippingAndTaxIfNeeded" />
  21. <seeOptionIsSelected selector="{{CheckoutCartSummarySection.country}}" userInput="{{country}}" stepKey="checkCountry"/>
  22. <seeOptionIsSelected selector="{{CheckoutCartSummarySection.stateProvince}}" userInput="{{state}}" stepKey="checkState" />
  23. <grabValueFrom selector="{{CheckoutCartSummarySection.postcode}}" stepKey="grabPostCodeText"/>
  24. <assertEquals message="Address postcode is invalid" stepKey="checkPostcode">
  25. <expectedResult type="string">{{postcode}}</expectedResult>
  26. <actualResult type="variable">grabPostCodeText</actualResult>
  27. </assertEquals>
  28. </actionGroup>
  29. </actionGroups>