Skip to content

Commit eea2c01

Browse files
ACQE-8538: [MFTF TESTS] StorefrontProductImageSlideTest
- Added scroll to image section in test.
1 parent 5a33de1 commit eea2c01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AddProductImageActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<arguments>
1616
<argument name="image" defaultValue="ProductImage"/>
1717
</arguments>
18-
<scrollTo selector="{{AdminProductImagesSection.productImagesToggle}}" x="0" y="-100" stepKey="waitForImagesSection"/>
18+
<waitForElementVisible selector="{{AdminProductImagesSection.productImagesToggle}}" stepKey="waitForImagesSection"/>
1919
<conditionalClick selector="{{AdminProductImagesSection.productImagesToggle}}" dependentSelector="{{AdminProductImagesSection.imageUploadButton}}" visible="false" stepKey="openProductImagesSection"/>
2020
<waitForPageLoad stepKey="waitForPageRefresh"/>
2121
<waitForElementVisible selector="{{AdminProductImagesSection.imageUploadButton}}" stepKey="seeImageSectionIsReady"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<actionGroup ref="FillMainProductFormActionGroup" stepKey="fillSimpleProductMain">
3737
<argument name="product" value="SimpleProduct"/>
3838
</actionGroup>
39-
39+
<scrollTo selector="{{AdminProductImagesSection.productImagesToggle}}" x="0" y="-100" stepKey="scrollToImageSection"/>
4040
<!-- Add image to product -->
4141
<actionGroup ref="AddProductImageActionGroup" stepKey="addImageForSimpleProduct">
4242
<argument name="image" value="TestImageWithDotInFilename"/>

0 commit comments

Comments
 (0)