Skip to content

Commit 01e8ff1

Browse files
committed
#19184: MFTF test fix
1 parent 6ce2026 commit 01e8ff1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<element name="DefaultLabel" type="input" selector="#attribute_label"/>
1414
<element name="InputType" type="select" selector="#frontend_input"/>
1515
<element name="ValueRequired" type="select" selector="#is_required"/>
16+
<element name="UpdateProductPreviewImage" type="select" selector="[name='update_product_preview_image']"/>
1617
<element name="AdvancedProperties" type="button" selector="#advanced_fieldset-wrapper"/>
1718
<element name="DefaultValue" type="input" selector="#default_value_text"/>
1819
<element name="Scope" type="select" selector="#is_global"/>

app/code/Magento/Swatches/Test/Mftf/Test/StorefrontFilterByImageSwatchTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
<!-- Select visual swatch -->
4242
<selectOption selector="{{AttributePropertiesSection.InputType}}" userInput="swatch_visual" stepKey="selectInputType"/>
4343

44+
<!-- Set Update Product Preview Image to Yes-->
45+
<selectOption selector="{{AttributePropertiesSection.UpdateProductPreviewImage}}" userInput="Yes" stepKey="setUpdateProductPreviewImage"/>
46+
4447
<!-- This hack is because the same <input type="file"> is re-purposed used for all uploads. -->
4548
<executeJS function="HTMLInputElement.prototype.click = function() { if(this.type !== 'file') HTMLElement.prototype.click.call(this); };" stepKey="disableClick"/>
4649

0 commit comments

Comments
 (0)