mirror of
https://framagit.org/tom79/fediplan.git
synced 2025-04-05 21:51:50 +02:00
23 lines
520 B
JavaScript
23 lines
520 B
JavaScript
'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-80x60.gif',
|
|
assetsDir + 'white-1x2.jpg'
|
|
])
|
|
browser.saveAndDiffScreenshot('Files uploaded')
|
|
})
|
|
|
|
it('deletes files', () => {
|
|
FileUpload.open().delete()
|
|
browser.saveAndDiffScreenshot('Files deleted')
|
|
})
|
|
})
|