Skip to content

Commit 15d33b8

Browse files
committed
MC-16650: Product Attribute Type Price Not Displaying
Changed selector of grabTextFrom created attribute and removed the last assertion which is not scope of this test
1 parent 2358d1c commit 15d33b8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<section name="StorefrontCategoryFilterSection">
1212
<element name="CategoryFilter" type="button" selector="//main//div[@class='filter-options']//div[contains(text(), 'Category')]"/>
1313
<element name="CategoryByName" type="button" selector="//main//div[@class='filter-options']//li[@class='item']//a[contains(text(), '{{var1}}')]" parameterized="true"/>
14-
<element name="CustomPriceAttribute" type="button" selector=".filter-options-title"/>
15-
<element name="CustomPriceAttributeContent" type="text" selector=".filter-options > div >div[data-role='content']"/>
14+
<element name="CustomPriceAttribute" type="button" selector="//div[contains(@class,'filter-options-title')]"/>
1615
</section>
1716
</sections>

app/code/Magento/CatalogSearch/Test/Mftf/Test/LayerNavigationOfCatalogSearchTest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<title value="Layer Navigation of Catalog Search Should Equalize Price Range As Default Configuration"/>
1515
<description value="Make sure filter of custom attribute with type of price displays on storefront Catalog page and price range should respect the configuration in Admin site"/>
1616
<testCaseId value="MC-16979"/>
17+
<issueId value="MC-16650"/>
1718
<severity value="MAJOR"/>
1819
<group value="CatalogSearch"/>
1920
</annotations>
@@ -44,7 +45,7 @@
4445
<actionGroup ref="navigateToCreatedProductEditPage" stepKey="navigateToCreatedProductEditPage1">
4546
<argument name="product" value="$$simpleProduct1$$"/>
4647
</actionGroup>
47-
<grabTextFrom selector="{{AdminProductAttributeSection.customAttributeLabel($$createPriceAttribute.attribute_code$$)}}" stepKey="grabAttributeLabel"/>
48+
<grabTextFrom selector="{{AdminProductFormSection.attributeLabelByText($$createPriceAttribute.attribute[frontend_labels][0][label]$$)}}" stepKey="grabAttributeLabel"/>
4849
<fillField selector="{{AdminProductAttributeSection.customAttribute($$createPriceAttribute.attribute_code$$)}}" userInput="30" stepKey="fillCustomPrice1"/>
4950
<click selector="{{AdminProductFormSection.save}}" stepKey="clickSaveButton1"/>
5051
<waitForPageLoad stepKey="waitForSimpleProductSaved1"/>
@@ -61,8 +62,7 @@
6162
<amOnPage url="{{StorefrontCategoryPage.url($$subCategory.name$$)}}" stepKey="goToCategoryStorefront"/>
6263
<waitForPageLoad stepKey="waitForPageLoad"/>
6364
<see userInput="{$grabAttributeLabel}" selector="{{StorefrontCategoryFilterSection.CustomPriceAttribute}}" stepKey="seePriceLayerNavigation"/>
64-
<click selector="{{StorefrontCategoryFilterSection.CustomPriceAttribute}}" stepKey="expandPriceFilter"/>
65-
<seeElement selector="{{StorefrontCategoryFilterSection.CustomPriceAttributeContent}}" stepKey="seeFilterContent"/>
65+
<click selector="{{StorefrontCategoryFilterSection.CustomPriceAttribute($grabAttributeLabel)}}" stepKey="expandPriceFilter"/>
6666
</test>
6767
</tests>
6868

0 commit comments

Comments
 (0)