Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

29 linhas
1.5 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="AssertStorefrontMiniCartItemsActionGroup">
  11. <annotations>
  12. <description>Validates that the provided Product details (Name, Price, Subtotal and Quantity) are present and correct in the Storefront Mini Shopping Cart.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="productName" type="string"/>
  16. <argument name="productPrice" type="string"/>
  17. <argument name="cartSubtotal" type="string"/>
  18. <argument name="qty" type="string"/>
  19. </arguments>
  20. <see selector="{{StorefrontMinicartSection.productPriceByName(productName)}}" userInput="{{productPrice}}" stepKey="seeProductPriceInMiniCart"/>
  21. <seeElement selector="{{StorefrontMinicartSection.goToCheckout}}" stepKey="seeCheckOutButtonInMiniCart"/>
  22. <seeElement selector="{{StorefrontMinicartSection.productQuantity(productName, qty)}}" stepKey="seeProductQuantity1"/>
  23. <seeElement selector="{{StorefrontMinicartSection.productImage}}" stepKey="seeProductImage"/>
  24. <see selector="{{StorefrontMinicartSection.productSubTotal}}" userInput="{{cartSubtotal}}" stepKey="seeSubTotal"/>
  25. </actionGroup>
  26. </actionGroups>