going crazy

This commit is contained in:
Artur Paikin 2016-08-21 19:48:23 -04:00
parent 5d5a7fff8b
commit 29667e15af

View file

@ -28,14 +28,24 @@ module.exports = function (driver, platform, host) {
.findElement({css: '.UppyForm input'})
.sendKeys(path.join(__dirname, 'image.jpg'))
driver.switchTo().alert().dismiss()
.catch(function (err) {
console.log(err)
})
driver.findElement({css: '.UppyForm button'}).click()
driver.switchTo().alert().dismiss()
.catch(function (err) {
console.log(err)
})
function isRedirectedAfterUpload () {
// this should close the “Do you want to save this file?” alert when Travis runs the test
// driver.switchTo().alert().dismiss()
// .catch(function (err) {
// console.log(err)
// })
driver.switchTo().alert().dismiss()
.catch(function (err) {
console.log(err)
})
return driver.getCurrentUrl().then(function (val) {
console.log('current url is ', val)