aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/blueimp/jquery-file-upload/wdio/test/specs/01-file-upload.js
blob: 95e77e7d82a7bbd9c309a42a8c0b7487bcd25185 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
'use strict'

/* global browser, describe, it */

const FileUpload = require('../pages/file-upload')
const assetsDir = browser.config.assetsDir

describe('File Upload', () => {
  if (!assetsDir) return

  it('uploads files', () => {
    FileUpload.open().upload([
      assetsDir + 'black+white-60x40.gif',
      assetsDir + 'black+white-3x2.jpg'
    ])
    browser.saveAndDiffScreenshot('Files uploaded')
  })

  it('deletes files', () => {
    FileUpload.open().delete()
    browser.saveAndDiffScreenshot('Files deleted')
  })
})