Skip to content

Commit b590648

Browse files
committed
MC-35640: The product is not added to the cart
1 parent 78189db commit b590648

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/code/Magento/Catalog/Test/Mftf/Page/StorefrontCategoryPage.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
<page name="StorefrontCategoryPage" url="/{{var1}}.html" area="storefront" module="Magento_Catalog" parameterized="true">
1212
<section name="StorefrontCategoryMainSection"/>
1313
<section name="WYSIWYGToolbarSection"/>
14+
<section name="StorefrontCategoryProductSection"/>
1415
</page>
1516
</pages>

app/code/Magento/Msrp/Test/Mftf/Page/StorefrontCategoryPage.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/PageObject.xsd">
1111
<page name="StorefrontCategoryPage" url="/{{var1}}.html" area="storefront" module="Magento_Catalog" parameterized="true">
1212
<section name="StorefrontMsrpPopupSection"/>
13-
<section name="StorefrontMsrpCategorySection"/>
1413
</page>
1514
</pages>

app/code/Magento/Msrp/Test/Mftf/Section/StorefrontMsrpCategorySection.xml renamed to app/code/Magento/Msrp/Test/Mftf/Section/StorefrontCategoryProductSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
10-
<section name="StorefrontMsrpCategorySection">
10+
<section name="StorefrontCategoryProductSection">
1111
<element name="clickForPrice" type="button" selector="//a[normalize-space() = '{{productName}}']/following::div[@data-role='priceBox']/a[@class='action map-show-info']" parameterized="true" timeout="30"/>
1212
<element name="mapPrice" type="button" selector="//a[normalize-space() = '{{productName}}']/following::div[@data-role='priceBox']//span[contains(@class, 'price-msrp_price')]" parameterized="true" timeout="30"/>
1313
</section>

app/code/Magento/Msrp/Test/Mftf/Test/StorefrontAddMapProductToCartFromPopupOnCategoryPageTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@
4949
</actionGroup>
5050

5151
<!-- Grab and verify MAP price -->
52-
<grabTextFrom selector="{{StorefrontMsrpCategorySection.mapPrice($createProduct.name$)}}" stepKey="grabMapPrice"/>
52+
<grabTextFrom selector="{{StorefrontCategoryProductSection.mapPrice($createProduct.name$)}}" stepKey="grabMapPrice"/>
5353
<assertEquals stepKey="assertMapPrice">
5454
<actualResult type="variable">grabMapPrice</actualResult>
5555
<expectedResult type="string">${{ApiProductMsrp.value}}</expectedResult>
5656
</assertEquals>
5757

5858
<!-- Open 'Click for price' popup and click 'Add to Cart' button -->
59-
<click selector="{{StorefrontMsrpCategorySection.clickForPrice($createProduct.name$)}}" stepKey="clickForPrice"/>
59+
<click selector="{{StorefrontCategoryProductSection.clickForPrice($createProduct.name$)}}" stepKey="clickForPrice"/>
6060
<waitForElementVisible selector="{{StorefrontMsrpPopupSection.addToCartButton}}" stepKey="waitForAddToCartButton"/>
6161
<click selector="{{StorefrontMsrpPopupSection.addToCartButton}}" stepKey="clickAddToCartButton"/>
6262
<waitForElementVisible selector="{{StorefrontMessagesSection.success}}" stepKey="waitForSuccessMessage"/>

0 commit comments

Comments
 (0)