Skip to content

Commit c97bee2

Browse files
committed
ACQE-8251: Verify wish list count displayed on homepage except wish list page in customer menu.
- Rename entity to NumberOfItemsInWishlist and update step keys text for clarity.
1 parent 50b273e commit c97bee2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/Wishlist/Test/Mftf/Data/WishlistData.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<data key="path">rss/wishlist/active</data>
6262
<data key="value">1</data>
6363
</entity>
64-
<entity name="NumberOfItems">
64+
<entity name="NumberOfItemsInWishlist">
6565
<data key="item">2 items</data>
6666
</entity>
6767
</entities>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@
4141
<argument name="productUrl" value="$$createProduct.custom_attributes[url_key]$$"/>
4242
</actionGroup>
4343
<!-- Step 2: Add product to wishlist -->
44-
<actionGroup ref="StorefrontCustomerAddProductToWishlistActionGroup" stepKey="addToWishlistProduct">
44+
<actionGroup ref="StorefrontCustomerAddProductToWishlistActionGroup" stepKey="addFirstProductToWishlist">
4545
<argument name="productVar" value="$createProduct$"/>
4646
</actionGroup>
4747
<!-- Open second product page -->
4848
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openTheProductPage">
4949
<argument name="productUrl" value="$$createSimpleProduct.custom_attributes[url_key]$$"/>
5050
</actionGroup>
5151
<!-- Step 2: Add second product to wishlist -->
52-
<actionGroup ref="StorefrontCustomerAddProductToWishlistActionGroup" stepKey="addToTheWishlistProduct">
52+
<actionGroup ref="StorefrontCustomerAddProductToWishlistActionGroup" stepKey="addSecondProductToWishlist">
5353
<argument name="productVar" value="$createSimpleProduct$"/>
5454
</actionGroup>
5555
<!-- Step 3: Navigate to Store front home page-->
@@ -60,6 +60,6 @@
6060
<waitForPageLoad stepKey="waitToLoadCustomerDropdownMenu"/>
6161
<!-- Step 4 assertion: The wishlist item count should display-->
6262
<waitForElementVisible selector="{{StorefrontCustomerWishlistProductSection.wishListLink}}" stepKey="wishListLink"/>
63-
<waitForText userInput="{{NumberOfItems.item}}" selector="{{StorefrontCustomerWishlistProductSection.wishListCount}}" stepKey="seeWishListCount"/>
63+
<waitForText userInput="{{NumberOfItemsInWishlist.item}}" selector="{{StorefrontCustomerWishlistProductSection.wishListCount}}" stepKey="seeWishListCount"/>
6464
</test>
6565
</tests>

0 commit comments

Comments
 (0)