From 29667e15affcee3ee2b2eb47df831452828a159c Mon Sep 17 00:00:00 2001 From: Artur Paikin Date: Sun, 21 Aug 2016 19:48:23 -0400 Subject: [PATCH] going crazy --- test/acceptance/fallback.spec.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/test/acceptance/fallback.spec.js b/test/acceptance/fallback.spec.js index bb244abc6..05d6781db 100644 --- a/test/acceptance/fallback.spec.js +++ b/test/acceptance/fallback.spec.js @@ -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)