File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed
app/code/Magento/PageBuilder/Test/Mftf
dev/tests/acceptance/tests/_data Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 218
218
<data key =" extension" >sql</data >
219
219
<data key =" errorMessage" >We don't recognize or support this file extension type.</data >
220
220
</entity >
221
+ <entity name =" PageBuilderBackgroundImage_InvalidMimeType" type =" pagebuilder_background_image_property" >
222
+ <data key =" name" >Background Image</data >
223
+ <data key =" section" >background</data >
224
+ <data key =" fieldName" >background_image</data >
225
+ <data key =" value" >not-a.png</data >
226
+ <data key =" fileName" >not-a</data >
227
+ <data key =" extension" >png</data >
228
+ <data key =" path" >wysiwyg</data >
229
+ <data key =" errorMessage" >File validation failed.</data >
230
+ </entity >
221
231
<!-- Background Mobile Image -->
222
232
<entity name =" PageBuilderBackgroundMobileImage_Default" type =" pagebuilder_background_mobile_image_property" >
223
233
<data key =" name" >Background Image</data >
Original file line number Diff line number Diff line change 1148
1148
<argument name =" backgroundImage" value =" PageBuilderBackgroundImage_JPG" />
1149
1149
</actionGroup >
1150
1150
</test >
1151
+ <test name =" BackgroundImageInvalidMimeType" extends =" BackgroundImageInvalidFileSize" >
1152
+ <annotations >
1153
+ <features value =" PageBuilder" />
1154
+ <stories value =" Background Form" />
1155
+ <title value =" Background Image - Invalid Mime Type" />
1156
+ <description value =" Tests that the Background Image attribute functions as expected for files with correct extension but invalid mime type" />
1157
+ <severity value =" CRITICAL" />
1158
+ <useCaseId value =" MC-5054" />
1159
+ <testCaseId value =" MC-5071" />
1160
+ <group value =" pagebuilder" />
1161
+ <group value =" pagebuilder-banner" />
1162
+ <group value =" pagebuilder-backgroundForm" />
1163
+ </annotations >
1164
+ <actionGroup ref =" attachInvalidFileOnSlideOut" stepKey =" attachInvalidFileOnSlideOut" >
1165
+ <argument name =" property" value =" PageBuilderBackgroundImage_InvalidMimeType" />
1166
+ </actionGroup >
1167
+ <actionGroup ref =" attachInvalidFileOnSlideOut" stepKey =" attachInvalidFileOnSlideOut2" >
1168
+ <argument name =" property" value =" PageBuilderBackgroundImage_InvalidMimeType" />
1169
+ </actionGroup >
1170
+ </test >
1151
1171
<test name =" BackgroundMobileImageJPG" >
1152
1172
<annotations >
1153
1173
<features value =" PageBuilder" />
You can’t perform that action at this time.
0 commit comments