diff options
Diffstat (limited to 'vendor/blueimp/jquery-file-upload/wdio/test/specs/01-file-upload.js')
-rw-r--r-- | vendor/blueimp/jquery-file-upload/wdio/test/specs/01-file-upload.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/vendor/blueimp/jquery-file-upload/wdio/test/specs/01-file-upload.js b/vendor/blueimp/jquery-file-upload/wdio/test/specs/01-file-upload.js index 95e77e7d8..0cc2782e9 100644 --- a/vendor/blueimp/jquery-file-upload/wdio/test/specs/01-file-upload.js +++ b/vendor/blueimp/jquery-file-upload/wdio/test/specs/01-file-upload.js @@ -8,16 +8,18 @@ const assetsDir = browser.config.assetsDir describe('File Upload', () => { if (!assetsDir) return - it('uploads files', () => { - FileUpload.open().upload([ + it('uploads files', async () => { + await FileUpload.open() + await FileUpload.upload([ assetsDir + 'black+white-60x40.gif', assetsDir + 'black+white-3x2.jpg' ]) - browser.saveAndDiffScreenshot('Files uploaded') + await browser.saveAndDiffScreenshot('Files uploaded') }) - it('deletes files', () => { - FileUpload.open().delete() - browser.saveAndDiffScreenshot('Files deleted') + it('deletes files', async () => { + await FileUpload.open() + await FileUpload.delete() + await browser.saveAndDiffScreenshot('Files deleted') }) }) |