Skip to content

Commit

Permalink
magento#19184: MFTF test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
p-bystritsky committed Apr 26, 2019
1 parent 6ce2026 commit 01e8ff1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<element name="DefaultLabel" type="input" selector="#attribute_label"/>
<element name="InputType" type="select" selector="#frontend_input"/>
<element name="ValueRequired" type="select" selector="#is_required"/>
<element name="UpdateProductPreviewImage" type="select" selector="[name='update_product_preview_image']"/>
<element name="AdvancedProperties" type="button" selector="#advanced_fieldset-wrapper"/>
<element name="DefaultValue" type="input" selector="#default_value_text"/>
<element name="Scope" type="select" selector="#is_global"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
<!-- Select visual swatch -->
<selectOption selector="{{AttributePropertiesSection.InputType}}" userInput="swatch_visual" stepKey="selectInputType"/>

<!-- Set Update Product Preview Image to Yes-->
<selectOption selector="{{AttributePropertiesSection.UpdateProductPreviewImage}}" userInput="Yes" stepKey="setUpdateProductPreviewImage"/>

<!-- This hack is because the same <input type="file"> is re-purposed used for all uploads. -->
<executeJS function="HTMLInputElement.prototype.click = function() { if(this.type !== 'file') HTMLElement.prototype.click.call(this); };" stepKey="disableClick"/>

Expand Down

0 comments on commit 01e8ff1

Please sign in to comment.