Skip to content

Commit a47c588

Browse files
committed
MC-36962: Create automated test for "Remove product added to shopping cart"
1 parent cffda91 commit a47c588

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

app/code/Magento/Checkout/Test/Mftf/Test/StoreFrontCheckIsCartUpdatedAfterProductDelete.xml renamed to app/code/Magento/Checkout/Test/Mftf/Test/StorefrontCheckIsCartUpdatedAfterProductDeleteTest.xml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@
77
-->
88
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10-
<test name="StoreFrontCheckIsCartUpdatedAfterProductDelete">
10+
<test name="StorefrontCheckIsCartUpdatedAfterProductDeleteTest">
1111
<annotations>
12-
<stories value="Checkout"/>
12+
<features value="Checkout"/>
13+
<stories value="Delete Products from Shopping Cart"/>
1314
<title value="Remove product added to shopping cart"/>
1415
<description value="The product has to be deleted from shopping cart if it deleted in admin panel"/>
1516
<testCaseId value="MC-36299"/>
17+
<useCaseId value="MAGETWO-83169"/>
1618
<severity value="CRITICAL"/>
17-
<group value="Shopping Cart"/>
19+
<group value="checkout"/>
20+
<group value="catalog"/>
1821
</annotations>
1922
<before>
2023
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
@@ -29,7 +32,7 @@
2932
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer"/>
3033
<deleteData createDataKey="createSecondProduct" stepKey="deleteSecondProduct"/>
3134
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
32-
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
35+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/>
3336
</after>
3437
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefront">
3538
<argument name="Customer" value="$createCustomer$"/>
@@ -46,16 +49,17 @@
4649
<argument name="total" value="$40.00"/>
4750
</actionGroup>
4851
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
49-
<actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteCreatedProduct">
52+
<actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteFirstProduct">
5053
<argument name="sku" value="$createFirstProduct.sku$"/>
5154
</actionGroup>
52-
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToCheckoutPage"/>
55+
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToShoppingCartPage"/>
5356
<actionGroup ref="AssertStorefrontCheckoutCartItemsActionGroup" stepKey="assertCartAfterProductDeleted">
5457
<argument name="productName" value="$createSecondProduct.name$"/>
5558
<argument name="productSku" value="$createSecondProduct.sku$"/>
5659
<argument name="productPrice" value="$createSecondProduct.price$"/>
5760
<argument name="subtotal" value="$createSecondProduct.price$" />
5861
<argument name="qty" value="1"/>
5962
</actionGroup>
63+
<dontSee selector="{{CheckoutCartProductSection.productName}}" userInput="$createFirstProduct.name$" stepKey="seeProductNameInCheckoutSummary"/>
6064
</test>
6165
</tests>

0 commit comments

Comments
 (0)