Skip to content

Commit ef85666

Browse files
committed
MFTF Stability control
1 parent 8066c49 commit ef85666

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
<requiredEntity type="FrontendLabel">ProductAttributeFrontendLabel</requiredEntity>
158158
</entity>
159159
<entity name="productAttributeWithDropdownTwoOptions" type="ProductAttribute">
160-
<data key="attribute_code">testattribute</data>
160+
<data key="attribute_code" unique="suffix">testattribute</data>
161161
<data key="frontend_input">select</data>
162162
<data key="scope">global</data>
163163
<data key="is_required">false</data>

app/code/Magento/Catalog/Test/Mftf/Test/StorefrontProductWithEmptyAttributeTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="amOnAttributeSetPage"/>
3939
<click selector="{{AdminProductAttributeSetGridSection.AttributeSetName('Default')}}" stepKey="chooseDefaultAttributeSet"/>
4040
<waitForPageLoad stepKey="waitForAttributeSetPageLoad"/>
41-
<dragAndDrop selector1="{{UnassignedAttributes.ProductAttributeName('testattribute')}}" selector2="{{Group.FolderName('Product Details')}}" stepKey="moveProductAttributeToGroup"/>
41+
<dragAndDrop selector1="{{UnassignedAttributes.ProductAttributeName('$$createProductAttribute.attribute_code$$')}}" selector2="{{Group.FolderName('Product Details')}}" stepKey="moveProductAttributeToGroup"/>
4242
<click selector="{{AttributeSetSection.Save}}" stepKey="saveAttributeSet"/>
4343
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear" />
4444
<seeElement selector=".message-success" stepKey="assertSuccess"/>
@@ -49,6 +49,6 @@
4949
<actionGroup ref="ClearCacheActionGroup" stepKey="clearCache"/>
5050
<amOnPage url="{{StorefrontProductPage.url(SimpleProduct.urlKey)}}" stepKey="goProductPageOnStorefront"/>
5151
<waitForPageLoad stepKey="waitForProductPageToLoad"/>
52-
<dontSeeElement selector="//table[@id='product-attribute-specs-table']/tbody/tr/th[contains(text(),'testattribute')]" stepKey="seeAttribute2"/>
52+
<dontSeeElement selector="//table[@id='product-attribute-specs-table']/tbody/tr/th[contains(text(),'$$createProductAttribute.attribute_code$$')]" stepKey="seeAttribute2"/>
5353
</test>
5454
</tests>

app/code/Magento/Catalog/Test/Mftf/Test/StorefrontProductsCompareWithEmptyAttributeTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="amOnAttributeSetPage"/>
4242
<click selector="{{AdminProductAttributeSetGridSection.AttributeSetName('Default')}}" stepKey="chooseDefaultAttributeSet"/>
4343
<waitForPageLoad stepKey="waitForAttributeSetPageLoad"/>
44-
<dragAndDrop selector1="{{UnassignedAttributes.ProductAttributeName('testattribute')}}" selector2="{{Group.FolderName('Product Details')}}" stepKey="moveProductAttributeToGroup"/>
44+
<dragAndDrop selector1="{{UnassignedAttributes.ProductAttributeName('$$createProductAttribute.attribute_code$$')}}" selector2="{{Group.FolderName('Product Details')}}" stepKey="moveProductAttributeToGroup"/>
4545
<click selector="{{AttributeSetSection.Save}}" stepKey="saveAttributeSet"/>
4646
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear" />
4747
<seeElement selector=".message-success" stepKey="assertSuccess"/>
@@ -81,6 +81,6 @@
8181
<argument name="productVar" value="$$createSimpleProduct1$$"/>
8282
</actionGroup>
8383
<seeElement selector="//table[@id='product-comparison']/tbody/tr/th/*[contains(text(),'SKU')]" stepKey="seeCompareAttribute1"/>
84-
<dontSeeElement selector="//table[@id='product-comparison']/tbody/tr/th/*[contains(text(),'testattribute')]" stepKey="seeCompareAttribute2"/>
84+
<dontSeeElement selector="//table[@id='product-comparison']/tbody/tr/th/*[contains(text(),'$$createProductAttribute.attribute_code$$')]" stepKey="seeCompareAttribute2"/>
8585
</test>
8686
</tests>

0 commit comments

Comments
 (0)