Skip to content

Commit 8271e93

Browse files
committed
MC-168: Admin should be able to assign attributes to an attribute set
- Rename duplicate element that broke PageBuilder tests
1 parent 956a172 commit 8271e93

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Section/AdminProductFormSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<element name="visibility" type="select" selector="//select[@name='product[visibility]']"/>
3838
<element name="visibilityUseDefault" type="checkbox" selector="//input[@name='use_default[visibility]']"/>
3939
<element name="divByDataIndex" type="input" selector="div[data-index='{{var}}']" parameterized="true"/>
40-
<element name="attributeLabel" type="text" selector="//*[@class='admin__field']//span[text()='{{attributeLabel}}']" parameterized="true"/>
40+
<element name="attributeLabelByText" type="text" selector="//*[@class='admin__field']//span[text()='{{attributeLabel}}']" parameterized="true"/>
4141
</section>
4242
<section name="ProductInWebsitesSection">
4343
<element name="sectionHeader" type="button" selector="div[data-index='websites']" timeout="30"/>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Test/AdminAssignProductAttributeToAttributeSetTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@
5252
<amOnPage url="{{AdminProductCreatePage.url(AddToDefaultSet.attributeSetId, 'simple')}}" stepKey="navigateToNewProduct"/>
5353
<waitForPageLoad stepKey="waitForPageLoad"/>
5454
<!-- Assert attribute can be used in product creation -->
55-
<seeElement selector="{{AdminProductFormSection.attributeLabel($$attribute.attribute[frontend_labels][0][label]$$)}}" stepKey="seeLabel"/>
55+
<seeElement selector="{{AdminProductFormSection.attributeLabelByText($$attribute.attribute[frontend_labels][0][label]$$)}}" stepKey="seeLabel"/>
5656
</test>
5757
</tests>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Test/AdminUnassignProductAttributeFromAttributeSetTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<amOnPage url="{{AdminProductCreatePage.url(AddToDefaultSet.attributeSetId, 'simple')}}" stepKey="navigateToNewProduct"/>
6868
<waitForPageLoad stepKey="wait2"/>
6969
<!-- Assert attribute not present in product creation -->
70-
<dontSeeElement selector="{{AdminProductFormSection.attributeLabel($$attribute.attribute[frontend_labels][0][label]$$)}}" stepKey="seeLabel"/>
70+
<dontSeeElement selector="{{AdminProductFormSection.attributeLabelByText($$attribute.attribute[frontend_labels][0][label]$$)}}" stepKey="seeLabel"/>
7171
<!-- Assert removed attribute not presence in storefront product additional information -->
7272
<amOnPage url="/$$product.custom_attributes[url_key]$$.html" stepKey="onProductPage2"/>
7373
<waitForPageLoad stepKey="wait3"/>

0 commit comments

Comments
 (0)