IdentityOfDefaultBillingAndShippingAddressActionGroup.xml 1.0 KB

123456789101112131415161718192021
  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. <!--Assert That Shipping And Billing Address are the same-->
  11. <actionGroup name="AssertThatShippingAndBillingAddressTheSame">
  12. <!--Get shipping and billing addresses-->
  13. <grabTextFrom selector="{{ShipmentFormSection.shippingAddress}}" stepKey="shippingAddr"/>
  14. <grabTextFrom selector="{{ShipmentFormSection.billingAddress}}" stepKey="billingAddr"/>
  15. <!--Make sure that shipping and billing addresses are different-->
  16. <see userInput="Shipping Address" stepKey="seeShippingAddress"/>
  17. <see userInput="Billing Address" stepKey="seeBillingAddress"/>
  18. <assertEquals stepKey="assert" actual="$billingAddr" expected="$shippingAddr"/>
  19. </actionGroup>
  20. </actionGroups>