Skip to content

Commit 6801e20

Browse files
authored
ACQE-5331: [MFTF PR TESTS] AdminSimpleProductImagesTest
1 parent f7efed6 commit 6801e20

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,28 +50,28 @@
5050

5151
<click selector="{{AdminProductImagesSection.productImagesToggle}}" stepKey="expandImages"/>
5252

53-
<!-- *.bmp is not allowed -->
53+
<!-- *.bmp is not allowed -->
5454
<attachFile selector="{{AdminProductImagesSection.imageFileUpload}}" userInput="bmp.bmp" stepKey="attachBmp"/>
55-
<waitForPageLoad stepKey="waitForUploadBmp"/>
56-
<waitForText selector="{{AdminProductMessagesSection.errorMessage}}" userInput="bmp.bmp was not uploaded. Disallowed file type." stepKey="seeErrorBmp"/>
55+
<waitForElementVisible selector="{{AdminProductMessagesSection.errorMessage}}" stepKey="waitForUploadBmp"/>
56+
<see selector="{{AdminProductMessagesSection.errorMessage}}" userInput="bmp.bmp was not uploaded. Disallowed file type." stepKey="seeErrorBmp"/>
5757
<click selector="{{AdminProductImagesSection.modalOkBtn}}" stepKey="closeModalBmp"/>
5858

5959
<!-- *.ico is not allowed -->
6060
<attachFile selector="{{AdminProductImagesSection.imageFileUpload}}" userInput="ico.ico" stepKey="attachIco"/>
61-
<waitForPageLoad stepKey="waitForUploadIco"/>
62-
<waitForText selector="{{AdminProductMessagesSection.errorMessage}}" userInput="ico.ico was not uploaded. Disallowed file type." stepKey="seeErrorIco"/>
61+
<waitForElementVisible selector="{{AdminProductMessagesSection.errorMessage}}" stepKey="waitForUploadIco"/>
62+
<see selector="{{AdminProductMessagesSection.errorMessage}}" userInput="ico.ico was not uploaded. Disallowed file type." stepKey="seeErrorIco"/>
6363
<click selector="{{AdminProductImagesSection.modalOkBtn}}" stepKey="closeModalIco"/>
6464

6565
<!-- *.svg is not allowed -->
6666
<attachFile selector="{{AdminProductImagesSection.imageFileUpload}}" userInput="svg.svg" stepKey="attachSvg"/>
67-
<waitForPageLoad stepKey="waitForUploadSvg"/>
68-
<waitForText selector="{{AdminProductMessagesSection.errorMessage}}" userInput="svg.svg was not uploaded. Disallowed file type." stepKey="seeErrorSvg"/>
67+
<waitForElementVisible selector="{{AdminProductMessagesSection.errorMessage}}" stepKey="waitForUploadSvg"/>
68+
<see selector="{{AdminProductMessagesSection.errorMessage}}" userInput="svg.svg was not uploaded. Disallowed file type." stepKey="seeErrorSvg"/>
6969
<click selector="{{AdminProductImagesSection.modalOkBtn}}" stepKey="closeModalSvg"/>
7070

7171
<!-- 0kb size is not allowed -->
7272
<attachFile selector="{{AdminProductImagesSection.imageFileUpload}}" userInput="empty.jpg" stepKey="attachEmpty"/>
73-
<waitForPageLoad stepKey="waitForUploadEmpty"/>
74-
<waitForText selector="{{AdminProductMessagesSection.errorMessage}}" userInput="empty.jpg was not uploaded." stepKey="seeErrorEmpty"/>
73+
<waitForElementVisible selector="{{AdminProductMessagesSection.errorMessage}}" stepKey="waitForUploadEmpty"/>
74+
<see selector="{{AdminProductMessagesSection.errorMessage}}" userInput="empty.jpg was not uploaded." stepKey="seeErrorEmpty"/>
7575
<click selector="{{AdminProductImagesSection.modalOkBtn}}" stepKey="closeModalEmpty"/>
7676

7777
<!-- 1~ kb is allowed -->

0 commit comments

Comments
 (0)