habitica-self-host/test/client-old/e2e/protractor.conf.js

31 lines
645 B
JavaScript
Raw Normal View History

2016-03-13 21:41:17 +00:00
'use strict';
let chai = require('chai');
let chaiAsPromised = require('chai-as-promised');
require('babel-register');
require('babel-polyfill');
2013-12-25 19:17:05 +00:00
exports.config = {
2016-03-13 21:41:17 +00:00
specs: ['./helper.js', './**/*.test.js'],
baseUrl: 'http://localhost:3003/',
capabilities: {
browserName: 'firefox',
},
directConnect: true,
2013-12-25 19:17:05 +00:00
seleniumAddress: 'http://localhost:4444/wd/hub',
framework: 'mocha',
mochaOpts: {
reporter: 'spec',
slow: 6000,
timeout: 10000,
2016-03-13 21:41:17 +00:00
compilers: 'js:babel-register',
2013-12-25 19:17:05 +00:00
},
onPrepare: () => {
browser.ignoreSynchronization = true;
2013-12-25 19:17:05 +00:00
chai.use(chaiAsPromised);
global.expect = chai.expect;
},
};