Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #968 from jloveland/e2e-test-error
Browse files Browse the repository at this point in the history
Adding protractor options to fix travis failing
  • Loading branch information
lirantal committed Oct 9, 2015
2 parents 28ae5d6 + 83eb2dc commit 3454cf8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ before_install:
- gem update --system
- gem install sass --version "=3.3.7"
- npm i nsp -g
- npm install protractor
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- 'node_modules/protractor/bin/webdriver-manager update --standalone --firefox'
- 'node_modules/protractor/bin/webdriver-manager start 2>&1 &'
- sleep 3
after_script:
- nsp audit-package
- grunt coverage
Expand Down
10 changes: 9 additions & 1 deletion protractor.conf.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
'use strict';

// Protractor configuration
exports.config = {
var config = {
specs: ['modules/*/tests/e2e/*.js']
};

if (process.env.TRAVIS) {
config.capabilities = {
browserName: 'firefox'
};
}

exports.config = config;

0 comments on commit 3454cf8

Please sign in to comment.