From dfa5ced7132ae0d69ab840406fc5ea516bcdb12a Mon Sep 17 00:00:00 2001 From: Artur Paikin Date: Sun, 21 Aug 2016 20:14:40 -0400 Subject: [PATCH] trying some more --- test/acceptance/fallback.spec.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/test/acceptance/fallback.spec.js b/test/acceptance/fallback.spec.js index 1ad56c8ca..e22727c24 100644 --- a/test/acceptance/fallback.spec.js +++ b/test/acceptance/fallback.spec.js @@ -49,10 +49,17 @@ module.exports = function (driver, platform, host) { console.log('5') driver.wait(isRedirectedAfterUpload, 12000, 'Browser should navigate to api2.transloadit.com after upload') .then(function (isPageRedirected) { - Driver.collectErrors(driver).then(function () { - Driver.testEqual(driver, t, isPageRedirected === true) - driver.quit() - }) + console.log('6') + driver.switchTo().alert().dismiss() + .catch(function (err) { + console.log(err) + }) + Driver.testEqual(driver, t, isPageRedirected === true) + driver.quit() + // Driver.collectErrors(driver).then(function () { + // Driver.testEqual(driver, t, isPageRedirected === true) + // driver.quit() + // }) }) .catch(function (err) { Driver.collectErrors(driver).then(function () {