|
53 | 53 | <!-- *.bmp is not allowed -->
|
54 | 54 | <attachFile selector="{{AdminProductImagesSection.imageFileUpload}}" userInput="bmp.bmp" stepKey="attachBmp"/>
|
55 | 55 | <waitForPageLoad stepKey="waitForUploadBmp"/>
|
56 |
| - <see selector="{{AdminProductMessagesSection.errorMessage}}" userInput="bmp.bmp was not uploaded. Disallowed file type." stepKey="seeErrorBmp"/> |
| 56 | + <waitForText selector="{{AdminProductMessagesSection.errorMessage}}" userInput="bmp.bmp was not uploaded. Disallowed file type." stepKey="seeErrorBmp"/> |
57 | 57 | <click selector="{{AdminProductImagesSection.modalOkBtn}}" stepKey="closeModalBmp"/>
|
58 | 58 |
|
59 | 59 | <!-- *.ico is not allowed -->
|
60 | 60 | <attachFile selector="{{AdminProductImagesSection.imageFileUpload}}" userInput="ico.ico" stepKey="attachIco"/>
|
61 | 61 | <waitForPageLoad stepKey="waitForUploadIco"/>
|
62 |
| - <see selector="{{AdminProductMessagesSection.errorMessage}}" userInput="ico.ico was not uploaded. Disallowed file type." stepKey="seeErrorIco"/> |
| 62 | + <waitForText selector="{{AdminProductMessagesSection.errorMessage}}" userInput="ico.ico was not uploaded. Disallowed file type." stepKey="seeErrorIco"/> |
63 | 63 | <click selector="{{AdminProductImagesSection.modalOkBtn}}" stepKey="closeModalIco"/>
|
64 | 64 |
|
65 | 65 | <!-- *.svg is not allowed -->
|
66 | 66 | <attachFile selector="{{AdminProductImagesSection.imageFileUpload}}" userInput="svg.svg" stepKey="attachSvg"/>
|
67 | 67 | <waitForPageLoad stepKey="waitForUploadSvg"/>
|
68 |
| - <see selector="{{AdminProductMessagesSection.errorMessage}}" userInput="svg.svg was not uploaded. Disallowed file type." stepKey="seeErrorSvg"/> |
| 68 | + <waitForText selector="{{AdminProductMessagesSection.errorMessage}}" userInput="svg.svg was not uploaded. Disallowed file type." stepKey="seeErrorSvg"/> |
69 | 69 | <click selector="{{AdminProductImagesSection.modalOkBtn}}" stepKey="closeModalSvg"/>
|
70 | 70 |
|
71 | 71 | <!-- 0kb size is not allowed -->
|
72 | 72 | <attachFile selector="{{AdminProductImagesSection.imageFileUpload}}" userInput="empty.jpg" stepKey="attachEmpty"/>
|
73 | 73 | <waitForPageLoad stepKey="waitForUploadEmpty"/>
|
74 |
| - <see selector="{{AdminProductMessagesSection.errorMessage}}" userInput="empty.jpg was not uploaded." stepKey="seeErrorEmpty"/> |
| 74 | + <waitForText selector="{{AdminProductMessagesSection.errorMessage}}" userInput="empty.jpg was not uploaded." stepKey="seeErrorEmpty"/> |
75 | 75 | <click selector="{{AdminProductImagesSection.modalOkBtn}}" stepKey="closeModalEmpty"/>
|
76 | 76 |
|
77 | 77 | <!-- 1~ kb is allowed -->
|
|
110 | 110 | <waitForPageLoad stepKey="waitForStorefront"/>
|
111 | 111 |
|
112 | 112 | <!-- See all of the images that we uploaded -->
|
113 |
| - <seeElementInDOM selector="{{StorefrontProductMediaSection.imageFile('small')}}" stepKey="seeSmall"/> |
114 |
| - <seeElementInDOM selector="{{StorefrontProductMediaSection.imageFile('medium')}}" stepKey="seeMedium"/> |
115 |
| - <seeElementInDOM selector="{{StorefrontProductMediaSection.imageFile('large')}}" stepKey="seeLarge"/> |
116 |
| - <seeElementInDOM selector="{{StorefrontProductMediaSection.imageFile('gif')}}" stepKey="seeGif"/> |
117 |
| - <seeElementInDOM selector="{{StorefrontProductMediaSection.imageFile('jpg')}}" stepKey="seeJpg"/> |
118 |
| - <seeElementInDOM selector="{{StorefrontProductMediaSection.imageFile('png')}}" stepKey="seePng"/> |
| 113 | + <waitForElement selector="{{StorefrontProductMediaSection.imageFile('small')}}" stepKey="seeSmall"/> |
| 114 | + <waitForElement selector="{{StorefrontProductMediaSection.imageFile('medium')}}" stepKey="seeMedium"/> |
| 115 | + <waitForElement selector="{{StorefrontProductMediaSection.imageFile('large')}}" stepKey="seeLarge"/> |
| 116 | + <waitForElement selector="{{StorefrontProductMediaSection.imageFile('gif')}}" stepKey="seeGif"/> |
| 117 | + <waitForElement selector="{{StorefrontProductMediaSection.imageFile('jpg')}}" stepKey="seeJpg"/> |
| 118 | + <waitForElement selector="{{StorefrontProductMediaSection.imageFile('png')}}" stepKey="seePng"/> |
119 | 119 |
|
120 | 120 | <!-- Go to the category page and see a placeholder image for the second product -->
|
121 | 121 | <amOnPage url="$$category.custom_attributes[url_key]$$.html" stepKey="goToCategoryPage"/>
|
|
159 | 159 | <!-- Go to the product page and see the uploaded image -->
|
160 | 160 | <amOnPage url="$$secondProduct.custom_attributes[url_key]$$.html" stepKey="goToStorefront2"/>
|
161 | 161 | <waitForPageLoad stepKey="waitForStorefront2"/>
|
162 |
| - <seeElementInDOM selector="{{StorefrontProductMediaSection.imageFile('large')}}" stepKey="seeLarge2"/> |
| 162 | + <waitForElement selector="{{StorefrontProductMediaSection.imageFile('large')}}" stepKey="seeLarge2"/> |
163 | 163 | </test>
|
164 | 164 | </tests>
|
0 commit comments