Skip to content

Commit e61a52f

Browse files
author
Bohdan Shevchenko
committed
MC-24236: [MFTF Test] Unskip MFTF test MC-13607 "Verify that Catalog Price Rule and Customer Group Membership are persisted under long-term cookie"
1 parent 60ebf30 commit e61a52f

File tree

5 files changed

+7
-10
lines changed

5 files changed

+7
-10
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AssertStorefrontProductPriceInCategoryPageActionGroup.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<argument name="productPrice" type="string" defaultValue="{{productWithHTMLEntityOne.price}}"/>
1919
</arguments>
2020

21-
<!-- Go to storefront category page, assert product visibility -->
2221
<amOnPage url="{{StorefrontCategoryPage.url(categoryUrl)}}" stepKey="navigateToCategoryPage"/>
2322
<waitForPageLoad stepKey="waitForProductPageLoad"/>
2423
<see userInput="{{productPrice}}" selector="{{StorefrontCategoryProductSection.ProductPriceByName(productName)}}" stepKey="assertProductPrice"/>

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AssertStorefrontProductSpecialPriceInCategoryPageActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AssertStorefrontProductSpecialPriceInCategoryPageActionGroup" extends="AssertStorefrontProductPriceInCategoryPageActionGroup">
1212
<annotations>
13-
<description>Goes to Storefront Category page for the provided Category. Validates that the Product price is present and correct.</description>
13+
<description>Goes to Storefront Category page for the provided Category. Validates that the Product price and special price is correct.</description>
1414
</annotations>
1515
<arguments>
1616
<argument name="productSpecialPrice" type="string" defaultValue="{{updateVirtualProductSpecialPrice.special_price}}"/>

app/code/Magento/Catalog/Test/Mftf/Section/StorefrontCategoryProductSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<element name="ProductTitleByName" type="button" selector="//main//li//a[contains(text(), '{{var1}}')]" parameterized="true"/>
2323
<element name="ProductPriceByName" type="text" selector="//main//li[.//a[contains(text(), '{{var1}}')]]//span[@class='price']" parameterized="true"/>
24-
<element name="ProductCatalogRuleSpecialPriceTitleByName" type="text" selector="//main//li[.//a[contains(text(), '{{productName}}')]]//span[@class='special-price']/span" parameterized="true"/>
24+
<element name="ProductCatalogRuleSpecialPriceTitleByName" type="text" selector="//div[contains(@class, 'product-item-info')][.//a[contains(text(), '{{productName}}')]]//span[@class='special-price']/span" parameterized="true"/>
2525
<element name="ProductCatalogRulePriceTitleByName" type="text" selector="//div[descendant::*[contains(text(), '{{var1}}')]]//*[contains(@class, 'price-label')]" parameterized="true"/>
2626
<element name="ProductImageByName" type="text" selector="//main//li[.//a[contains(text(), '{{var1}}')]]//img[@class='product-image-photo']" parameterized="true"/>
2727
<element name="ProductImageBySrc" type="text" selector=".products-grid img[src*='{{pattern}}']" parameterized="true"/>

app/code/Magento/CatalogRule/Test/Mftf/Test/CatalogPriceRuleAndCustomerGroupMembershipArePersistedUnderLongTermCookieTest.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
<createData entity="productWithHTMLEntityOne" stepKey="createProduct">
2626
<requiredEntity createDataKey="createCategory"/>
2727
</createData>
28-
<createData entity="Simple_US_Customer" stepKey="createCustomer">
29-
<field key="group_id">1</field>
30-
</createData>
28+
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
3129

3230
<!--Delete all Catalog Price Rule if exist-->
3331
<actionGroup ref="LoginAsAdmin" stepKey="loginToAdminPanel"/>
@@ -46,7 +44,7 @@
4644
<actionGroup ref="AdminCatalogPriceRuleSaveAndApplyActionGroup" stepKey="clickSaveAndApplyRule"/>
4745

4846
<!-- Perform reindex -->
49-
<magentoCLI command="indexer:reindex" arguments="catalogrule_rule" stepKey="reindex"/>
47+
<magentoCLI command="indexer:reindex" arguments="catalogrule_rule" stepKey="reindex"/>
5048
</before>
5149
<after>
5250
<createData entity="PersistentConfigDefault" stepKey="setDefaultPersistentState"/>
@@ -94,7 +92,7 @@
9492

9593
<!--Click the *Not you?* link and check the price for Simple Product-->
9694
<click selector="{{StorefrontPanelHeaderSection.notYouLink}}" stepKey="clickNotYouLink"/>
97-
<actionGroup ref="AssertDefaultWelcomeMessageActionGroup" stepKey="seeWelcomeMessageForJohnDoeCustomerAfterLogout"/>
95+
<actionGroup ref="AssertStorefrontDefaultWelcomeMessageActionGroup" stepKey="seeWelcomeMessageForJohnDoeCustomerAfterLogout"/>
9896
<actionGroup ref="AssertStorefrontProductPriceInCategoryPageActionGroup" stepKey="assertProductPriceInCategoryPageAfterLogout">
9997
<argument name="categoryUrl" value="$createCategory.custom_attributes[url_key]$"/>
10098
<argument name="productName" value="$createProduct.name$"/>

app/code/Magento/Customer/Test/Mftf/ActionGroup/AssertDefaultWelcomeMessageActionGroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<actionGroup name="AssertDefaultWelcomeMessageActionGroup">
11+
<actionGroup name="AssertStorefrontDefaultWelcomeMessageActionGroup">
1212
<annotations>
1313
<description>Validates that the Welcome message is present and correct and not you link absent.</description>
1414
</annotations>
1515

16-
<waitForPageLoad stepKey="waitForPageLoad"/>
16+
<waitForElementVisible selector="{{StorefrontPanelHeaderSection.WelcomeMessage}}" stepKey="waitDefaultMessage"/>
1717
<see userInput="Default welcome msg!" selector="{{StorefrontPanelHeaderSection.WelcomeMessage}}" stepKey="verifyDefaultMessage"/>
1818
<dontSeeElement selector="{{StorefrontPanelHeaderSection.notYouLink}}" stepKey="checkAbsenceLinkNotYou"/>
1919
</actionGroup>

0 commit comments

Comments
 (0)