Skip to content

Commit 13ae3fb

Browse files
committed
ACQE-8251: Verify wish list count displayed on homepage except wish list page in customer menu.
- Removed reindex, cache in the test file.
1 parent 82072ac commit 13ae3fb

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

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

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
<group value="wishlist"/>
1919
</annotations>
2020
<before>
21-
<!-- Pre-condition 1: Create product-->
21+
<!-- Pre-condition 1,2: Create product, customer -->
2222
<createData entity="SimpleProduct" stepKey="createProduct"/>
23-
<!-- Pre-condition 2: Create customer-->
2423
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
2524
</before>
2625
<after>
@@ -30,7 +29,7 @@
3029
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
3130
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
3231
</after>
33-
<!-- Step 1:Log in as a customer on storefront. -->
32+
<!-- Step 1: Log in as a customer on storefront. -->
3433
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount">
3534
<argument name="Customer" value="$createCustomer$"/>
3635
</actionGroup>
@@ -42,20 +41,14 @@
4241
<actionGroup ref="StorefrontCustomerAddProductToWishlistActionGroup" stepKey="addToWishlistProduct">
4342
<argument name="productVar" value="$createProduct$"/>
4443
</actionGroup>
45-
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
46-
<argument name="indices" value=""/>
47-
</actionGroup>
48-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="cleanCache">
49-
<argument name="tags" value=""/>
50-
</actionGroup>
5144
<!-- Step 3: Navigate to Store front home page-->
5245
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomePage"/>
5346
<waitForPageLoad stepKey="waitToLoadHomePage"/>
5447
<!-- Step 4: Click on customer menu-->
5548
<waitForElementClickable selector="{{LoggedInCustomerHeaderLinksSection.customerDropdownMenu}}" stepKey="waitToOpenCustomerDropdownMenu"/>
5649
<click selector="{{LoggedInCustomerHeaderLinksSection.customerDropdownMenu}}" stepKey="openCustomerDropdownMenu"/>
5750
<waitForPageLoad stepKey="waitToLoadCustomerDropdownMenu"/>
58-
<!-- Step 4 assertion:The wishlist item count should display-->
51+
<!-- Step 4 assertion: The wishlist item count should display-->
5952
<waitForElementVisible selector="{{StorefrontCustomerWishlistProductSection.wishListLink}}" stepKey="wishListLink"/>
6053
<waitForText userInput="1 item" selector="{{StorefrontCustomerWishlistProductSection.wishListCount}}" stepKey="seeWishListCount"/>
6154
</test>

0 commit comments

Comments
 (0)