From 042bbe025cbccbef4d42e36100a2a5dbf29d53cd Mon Sep 17 00:00:00 2001 From: MoyuScript Date: Sun, 18 May 2014 21:37:56 +0300 Subject: [PATCH] Update webdriver browser versions to test --- tests/selenium.js | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/tests/selenium.js b/tests/selenium.js index dd148fe..5d35600 100644 --- a/tests/selenium.js +++ b/tests/selenium.js @@ -125,8 +125,10 @@ function webdriverStream(test) { var browser = wd.remote("localhost", 4445, process.env.SAUCE_USERNAME, process.env.SAUCE_ACCESS_KEY); var browserStream = new Bacon.Bus(); - test.capabilities["tunnel-identifier"] = process.env.TRAVIS_JOB_NUMBER; - test.capabilities["name"] = process.env.TRAVIS_COMMIT + " #" + process.env.TRAVIS_BUILD_NUMBER; + if (process.env.TRAVIS_JOB_NUMBER) { + test.capabilities["tunnel-identifier"] = process.env.TRAVIS_JOB_NUMBER; + test.capabilities["name"] = process.env.TRAVIS_COMMIT.substring(0, 10) + " #" + process.env.TRAVIS_BUILD_NUMBER; + } var resultStream = Bacon.fromNodeCallback(browser, "init", test.capabilities) .flatMap(Bacon.fromNodeCallback(browser, "setImplicitWaitTimeout", 15000) @@ -194,7 +196,8 @@ var browsers = [ { browserName: "chrome", - platform: "Windows 7" + platform: "Windows 7", + version: "34" },{ browserName: "firefox", version: "15", @@ -207,13 +210,22 @@ browserName: "internet explorer", version: "10", platform: "Windows 8" + },{ + browserName: "internet explorer", + version: "11", + platform: "Windows 8.1" },{ browserName: "safari", version: "6", platform: "OS X 10.8" + },{ + browserName: "safari", + platform: "OS X 10.9", + version: "7" },{ browserName: "chrome", - platform: "OS X 10.8" + platform: "OS X 10.8", + version: "34" } ]; return Bacon.combineTemplate({