|
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- -->
-
- <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
- <actionGroup name="AssertStorefrontCartItemWithWeeeAttributeActionGroup" extends="AssertStorefrontCheckoutCartItemsActionGroup">
- <annotations>
- <description>Validates that the provided Product details (Name and Price), Product Quantity, Weee Attribute data are present and correct in the Shopping Cart.</description>
- </annotations>
- <arguments>
- <argument name="weeePrice" defaultValue="50" type="string"/>
- <argument name="weeeSubtotal" defaultValue="50" type="string"/>
- </arguments>
-
- <click selector="{{CheckoutCartProductSection.ProductPriceByName(productName)}}" after="seeProductQuantity" stepKey="clickOnItemPrice"/>
- <see userInput="{{weeePrice}}" selector="{{StorefrontCheckoutCartItemWeeeSection.productWeeePriceByName(productName)}}" after="clickOnItemPrice" stepKey="assertProductWeee"/>
- <click selector="{{CheckoutCartProductSection.productSubtotalByName(productName)}}" after="assertProductWeee" stepKey="clickOnItemSubtotal"/>
- <see userInput="{{weeeSubtotal}}" selector="{{StorefrontCheckoutCartItemWeeeSection.productWeeeSubtotalByName(productName)}}" after="clickOnItemSubtotal" stepKey="assertProductWeeeSubtotal"/>
- </actionGroup>
- </actionGroups>
|