Commit 48b34a03 authored by Sam Saccone's avatar Sam Saccone Committed by Addy Osmani

Bump test specs (#1623)

* tests: cache node_modules

Move chrome to snapshots

* tests: Bump selenium version

* tests: Bump drool to v0.4.0

* tests: Remove chromedriver download

* test: Remove direct logs call.
parent e0710643
......@@ -8,6 +8,11 @@ node_js:
- 'stable'
notifications:
irc: 'irc.freenode.org#tastejs'
cache:
directories:
- tooling/node_modules
- tests/node_modules
- node_modules
env:
global:
# GH_OAUTH_TOKEN is the oauth token generated as described at
......@@ -28,8 +33,7 @@ env:
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- wget 'https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F362586%2Fchrome-linux.zip?generation=1449027526136000&alt=media' -O chrome.zip && unzip chrome.zip
- curl -Lo chromedriver.zip http://chromedriver.storage.googleapis.com/2.20/chromedriver_linux64.zip && unzip chromedriver.zip
- wget 'https://download-chromium.appspot.com/dl/Linux_x64?type=snapshots' -O chrome.zip && unzip chrome.zip
script:
# We want to gate on passing tests and a successful build
# We want to gate on passing tests and a successful build
- ./test-runner.sh
......@@ -7,8 +7,8 @@
"mocha": "*",
"mocha-known-issues-reporter": "git+https://github.com/ColinEberhardt/mocha-known-issues-reporter.git#v0.0.0",
"optimist": "^0.6.1",
"selenium-webdriver": "~2.46.1",
"drool": "0.2.2"
"selenium-webdriver": "~2.53.1",
"drool": "0.4.0"
},
"scripts": {
"test": "mocha allTests.js --no-timeouts --reporter spec"
......
......@@ -53,7 +53,7 @@ module.exports.todoMVCTest = function (frameworkName, baseUrl, speedMode, laxMod
}
function printCapturedLogs() {
var logs = new webdriver.WebDriver.Logs(browser);
var logs = browser.manage().logs();
return logs.get('browser')
.then(function (entries) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment