Skip to content

Commit 752bcf7

Browse files
fix StorefrontAddMultipleStoreProductsToWishlistTest
1 parent 0873ba5 commit 752bcf7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/code/Magento/Wishlist/Test/Mftf/Section/StorefrontCustomerWishlistSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515
<element name="productLinkByProductName" type="text" selector="//a[contains(text(), '{{prodName}}') and contains(@class,'product-item-link')]" parameterized="true" timeout="30"/>
1616
<element name="removeWishlistButton" type="button" selector="//main//li[.//a[contains(text(), '{{prodName}}')]]//a[@data-role='remove']" parameterized="true" timeout="30"/>
1717
<element name="emptyWishlistText" type="text" selector=".message.info.empty>span"/>
18+
<element name="wishListProductName" type="text" selector=".products-grid li:nth-child({{prodName}}) .product-item-name a" parameterized="true" timeout="30"/>
1819
</section>
1920
</sections>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
</actionGroup>
106106
<click selector="{{StorefrontProductPageSection.addToWishlist}}" stepKey="addFirstProductToWishlist"/>
107107
<waitForPageLoad stepKey="waitForPageLoad"/>
108-
<see userInput="$$product.name$$" selector="{{StorefrontCustomerWishlistSection.productItemNameText}}" stepKey="seeProduct1InWishlistOnSecondStore"/>
108+
<see userInput="$$product.name$$" selector="{{StorefrontCustomerWishlistSection.wishListProductName('1')}}" stepKey="seeProduct1InWishlistOnSecondStore"/>
109109
<!-- Switch to second store and add second product (visible on second store) to wishlist -->
110110
<click selector="{{StorefrontFooterSection.switchStoreButton}}" stepKey="clickSwitchStoreButtonOnDefaultStore"/>
111111
<click selector="{{StorefrontFooterSection.storeLink($$storeGroup.group[name]$$)}}" stepKey="selectSecondStoreToSwitchOn"/>
@@ -118,10 +118,10 @@
118118
</actionGroup>
119119
<click selector="{{StorefrontProductPageSection.addToWishlist}}" stepKey="addSecondProductToWishlist"/>
120120
<waitForPageLoad stepKey="waitForPageLoad2"/>
121-
<waitForText userInput="$$secondProduct.name$$" selector="{{StorefrontCustomerWishlistSection.productItemNameText}}" stepKey="seeProduct2InWishlistOnSecondStore"/>
121+
<waitForText userInput="$$secondProduct.name$$" selector="{{StorefrontCustomerWishlistSection.wishListProductName('2')}}" stepKey="seeProduct2InWishlistOnSecondStore"/>
122122
<click selector="{{StorefrontFooterSection.switchStoreButton}}" stepKey="clickSwitchStoreButtonOnSecondStore"/>
123123
<click selector="{{StorefrontFooterSection.storeLink('Main Website Store')}}" stepKey="selectDefaultStoreToSwitchOn"/>
124124
<waitForPageLoad stepKey="waitForPageLoad3"/>
125-
<see userInput="$$product.name$$" selector="{{StorefrontCustomerWishlistSection.productItemNameText}}" stepKey="seeProduct1InWishlistOnDefaultStore"/>
125+
<see userInput="$$product.name$$" selector="{{StorefrontCustomerWishlistSection.wishListProductName('1')}}" stepKey="seeProduct1InWishlistOnDefaultStore"/>
126126
</test>
127127
</tests>

0 commit comments

Comments
 (0)