1 2 3 4 5 6 7 8
| it('uploads a file and fills the form with it', async function () { var toUpload = path.join(__dirname, '..', '..', 'fixtures', 'cat-to-upload.gif')
browser.chooseFile('#upload-test', toUpload)
browser.getValue('#upload-test') expect(/cat\-to\-upload\.gif$/.test(val)).to.be.equal(true) })
|