Skip to content

Commit c25ce09

Browse files
committed
MC-20075: Fix Skipped MFTF Tests From MC-17140: MC-14536, MC-14538, MC-14720
1 parent f262730 commit c25ce09

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

app/code/Magento/Checkout/Test/Mftf/ActionGroup/AssertStorefrontMiniCartItemsActionGroup.xml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,26 @@
1818
<argument name="cartSubtotal" type="string"/>
1919
<argument name="qty" type="string"/>
2020
</arguments>
21-
21+
2222
<see selector="{{StorefrontMinicartSection.miniCartItemsText}}" userInput="{{productName}}" stepKey="seeProductNameInMiniCart"/>
2323
<see selector="{{StorefrontMinicartSection.miniCartItemsText}}" userInput="{{productPrice}}" stepKey="seeProductPriceInMiniCart"/>
2424
<seeElement selector="{{StorefrontMinicartSection.goToCheckout}}" stepKey="seeCheckOutButtonInMiniCart"/>
2525
<seeElement selector="{{StorefrontMinicartSection.productQuantity(productName, qty)}}" stepKey="seeProductQuantity1"/>
2626
<seeElement selector="{{StorefrontMinicartSection.productImage}}" stepKey="seeProductImage"/>
2727
<see selector="{{StorefrontMinicartSection.productSubTotal}}" userInput="{{cartSubtotal}}" stepKey="seeSubTotal"/>
2828
</actionGroup>
29+
30+
<actionGroup name="AssertStorefrontMiniCartProductDetailsAbsentActionGroup">
31+
<annotations>
32+
<description>Validates that the provided Product details (Name, Price) are
33+
not present in the Storefront Mini Shopping Cart.</description>
34+
</annotations>
35+
<arguments>
36+
<argument name="productName" type="string"/>
37+
<argument name="productPrice" type="string"/>
38+
</arguments>
39+
40+
<dontSee selector="{{StorefrontMinicartSection.miniCartItemsText}}" userInput="{{productName}}" stepKey="dontSeeProductNameInMiniCart"/>
41+
<dontSee selector="{{StorefrontMinicartSection.miniCartItemsText}}" userInput="{{productPrice}}" stepKey="dontSeeProductPriceInMiniCart"/>
42+
</actionGroup>
2943
</actionGroups>

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontCheckCartItemDisplayWhenMoreItemsAddedToTheCartThanDefaultDisplayLimitTest.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@
277277
</actionGroup>
278278

279279
<!-- Verify Product11 is not displayed in Mini Cart -->
280-
<dontSee selector="{{StorefrontMinicartSection.miniCartItemsText}}" userInput="$$simpleProduct11.name$$" stepKey="dontSeeProduct11NameInMiniCart"/>
281-
<dontSee selector="{{StorefrontMinicartSection.miniCartItemsText}}" userInput="110" stepKey="dontSeeProduct11PriceInMiniCart"/>
280+
<actionGroup ref="AssertStorefrontMiniCartProductDetailsAbsentActionGroup" stepKey="assertSimpleProduct11IsNotInMiniCart">
281+
<argument name="productName" value="$$simpleProduct11.name$$"/>
282+
<argument name="productPrice" value="$110.00"/>
283+
</actionGroup>
282284
</test>
283285
</tests>

0 commit comments

Comments
 (0)