File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
e2e/testcafe-devextreme/tests/fileUploader Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,20 @@ import { createWidget } from '../../helpers/createWidget';
44import url from '../../helpers/getPageUrl' ;
55
66const TEST_FILE = './images/test-image-1.png' ;
7+ const INPUT_SELECTOR = '.dx-fileuploader input[type=file]' ;
78
89fixture . disablePageReloads `FileUploader - file list visibility` . page ( url ( __dirname , '../container.html' ) ) ;
910
1011[ true , false ] . forEach ( ( showFileList ) => {
1112 test ( `FileUploader with showFileList: ${ showFileList } - after file selected` , async ( t ) => {
1213 const { takeScreenshot, compareResults } = createScreenshotsComparer ( t ) ;
1314
15+ await t . setFilesToUpload ( INPUT_SELECTOR , [ TEST_FILE ] ) ;
16+
1417 await testScreenshot ( t , takeScreenshot , `fileuploader-show-filelist-${ showFileList } .png` , {
1518 element : '#container' ,
1619 } ) ;
1720
1821 await t . expect ( compareResults . isValid ( ) ) . ok ( compareResults . errorMessages ( ) ) ;
19- } ) . before ( async ( ) => { await createWidget ( 'dxFileUploader' , { showFileList, value : TEST_FILE } ) ; } ) ;
22+ } ) . before ( async ( ) => createWidget ( 'dxFileUploader' , { showFileList } ) ) ;
2023} ) ;
You can’t perform that action at this time.
0 commit comments