Skip to content

Commit 9b4d1e6

Browse files
MAGETWO-95837: Product is added to Wish List with Attributes selected however they were unselected on PDP before
- Updated automated test
1 parent af8c0bd commit 9b4d1e6

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

app/code/Magento/Wishlist/Test/Mftf/Test/ConfProdAddToCartWishListWithUnselectedAttrTest.xml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
<test name="ConfProdAddToCartWishListWithUnselectedAttrTest">
1111
<annotations>
1212
<features value="Wishlist"/>
13-
<stories value="MAGETWO-95837: Product is added to Wish List with Attributes selected however they were unselected on PDP before"/>
1413
<group value="wishlist"/>
1514
<title value="Adding configurable product to Cart from Wish List with unselected attributes"/>
1615
<description value="Verify adding configurable product to Cart from Wish List when attributes is unselected"/>
1716
<severity value="AVERAGE"/>
1817
<testCaseId value="MAGETWO-95897"/>
18+
<useCaseId value="MAGETWO-95837"/>
1919
</annotations>
2020

2121
<before>
@@ -28,6 +28,17 @@
2828
</actionGroup>
2929
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
3030
</before>
31+
<after>
32+
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
33+
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
34+
<!-- Delete the first simple product -->
35+
<actionGroup stepKey="deleteProduct1" ref="deleteProductBySku">
36+
<argument name="sku" value="{{_defaultProduct.sku}}"/>
37+
</actionGroup>
38+
<conditionalClick selector="{{AdminProductGridFilterSection.clearFilters}}"
39+
dependentSelector="{{AdminProductGridFilterSection.clearFilters}}" visible="true" stepKey="clickClearFilters"/>
40+
<actionGroup ref="logout" stepKey="logout"/>
41+
</after>
3142

3243
<!--Login as customer -->
3344
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount">
@@ -49,21 +60,10 @@
4960
<waitForPageLoad stepKey="waitForLoading"/>
5061
<!--Click "Add All to Cart" button-->
5162
<click selector="{{StorefrontCustomerWishlistProductSection.ProductAddAllToCart}}" stepKey="addAllToCart"/>
63+
<waitForElementVisible stepKey="waitForErrorAppears" selector="{{StorefrontMessagesSection.error}}"/>
5264

5365
<!--Assert Correct Error Message-->
5466
<see userInput="You need to choose options for your item for" stepKey="assertCorrectErrorMessage"/>
5567
<dontSee userInput="1 product(s) have been added to shopping cart" stepKey="dontSeeSuccessMessage"/>
56-
57-
<after>
58-
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
59-
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
60-
<!-- Delete the first simple product -->
61-
<actionGroup stepKey="deleteProduct1" ref="deleteProductBySku">
62-
<argument name="sku" value="{{_defaultProduct.sku}}"/>
63-
</actionGroup>
64-
<conditionalClick selector="{{AdminProductGridFilterSection.clearFilters}}"
65-
dependentSelector="{{AdminProductGridFilterSection.clearFilters}}" visible="true" stepKey="clickClearFilters"/>
66-
<actionGroup ref="logout" stepKey="logout"/>
67-
</after>
6868
</test>
6969
</tests>

0 commit comments

Comments
 (0)