Skip to content

Commit ceb4ddc

Browse files
glo74186mohit-adobe
authored andcommitted
ACQE-7335 : Catalog rule should apply for product on multiple websites
did required changes
1 parent a3158ac commit ceb4ddc

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

app/code/Magento/Catalog/Test/Mftf/Data/ProductAttributeData.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@
476476
<requiredEntity type="FrontendLabel">ProductAttributeFrontendLabel</requiredEntity>
477477
</entity>
478478
<entity name="productAttributeAgeGroupDropdown" type="ProductAttribute">
479-
<data key="default_frontend_label" unique="suffix">testattribute</data>
480-
<data key="attribute_code" unique="suffix">testattribute</data>
479+
<data key="default_frontend_label" unique="suffix">Age Group</data>
480+
<data key="attribute_code" unique="suffix">agegroup</data>
481481
<data key="frontend_input">select</data>
482482
<data key="scope">website</data>
483483
<data key="is_required">false</data>
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88

99
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10-
<test name="StorefrontCheckProductPricesAcrossWebsitesBasedOnCatalogPriceRuleTest">
10+
<test name="StorefrontVerifySingleProductCatalogPriceRuleAcrossWebsitesTest">
1111
<annotations>
1212
<features value="CatalogRule"/>
1313
<stories value="Apply catalog price rule"/>
@@ -17,6 +17,19 @@
1717
<testCaseId value="AC-7409"/>
1818
</annotations>
1919
<before>
20+
<!--Create dropdown product attribute-->
21+
<createData entity="productAttributeAgeGroupDropdown" stepKey="createDropdownAttribute"/>
22+
<!--Create attribute options-->
23+
<createData entity="productAttributeOptionAdult" stepKey="createFirstAttributeOption">
24+
<requiredEntity createDataKey="createDropdownAttribute"/>
25+
</createData>
26+
<createData entity="productAttributeOptionChildren" stepKey="createSecondAttributeOption">
27+
<requiredEntity createDataKey="createDropdownAttribute"/>
28+
</createData>
29+
<!--Add attribute to default attribute set-->
30+
<createData entity="AddToDefaultSet" stepKey="addAttributeToDefaultSet">
31+
<requiredEntity createDataKey="createDropdownAttribute"/>
32+
</createData>
2033
<!-- Create Simple Product -->
2134
<createData entity="SimpleProduct" stepKey="createProduct">
2235
<field key="price">100.00</field>
@@ -39,19 +52,6 @@
3952
<argument name="StoreGroup" value="NewWebSiteData"/>
4053
<argument name="customStore" value="NewWebSiteData"/>
4154
</actionGroup>
42-
<!--Create dropdown product attribute-->
43-
<createData entity="productAttributeAgeGroupDropdown" stepKey="createDropdownAttribute"/>
44-
<!--Create attribute options-->
45-
<createData entity="productAttributeOptionAdult" stepKey="createFirstAttributeOption">
46-
<requiredEntity createDataKey="createDropdownAttribute"/>
47-
</createData>
48-
<createData entity="productAttributeOptionChildren" stepKey="createSecondAttributeOption">
49-
<requiredEntity createDataKey="createDropdownAttribute"/>
50-
</createData>
51-
<!--Add attribute to default attribute set-->
52-
<createData entity="AddToDefaultSet" stepKey="addAttributeToDefaultSet">
53-
<requiredEntity createDataKey="createDropdownAttribute"/>
54-
</createData>
5555
</before>
5656
<after>
5757
<!--set main website as default-->

0 commit comments

Comments
 (0)