1
0
Fork 0
peertube/client/e2e/protractor.conf.js

81 lines
2 KiB
JavaScript
Raw Normal View History

2018-05-16 13:59:21 -04:00
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
const {SpecReporter} = require('jasmine-spec-reporter')
exports.config = {
2018-05-19 07:58:29 -04:00
allScriptsTimeout: 25000,
2018-05-22 10:02:29 -04:00
specs: ['./src/**/*.e2e-spec.ts'],
2018-05-17 10:33:20 -04:00
seleniumAddress: 'http://hub-cloud.browserstack.com/wd/hub',
2018-05-18 05:02:40 -04:00
commonCapabilities: {
2018-05-17 10:33:20 -04:00
'browserstack.user': process.env.BROWSERSTACK_USER,
'browserstack.key': process.env.BROWSERSTACK_KEY,
'browserstack.local': true,
2018-05-24 03:05:58 -04:00
project: 'PeerTube'
2018-05-17 10:33:20 -04:00
},
2018-05-18 05:02:40 -04:00
multiCapabilities: [
{
browserName: 'Chrome',
2018-06-08 05:25:12 -04:00
version: '66',
name: 'Latest Chrome Desktop'
2018-05-18 05:02:40 -04:00
},
{
browserName: 'Safari',
2018-06-08 05:25:12 -04:00
version: '11.1',
name: 'Safari Desktop'
2018-05-18 05:02:40 -04:00
},
{
browserName: 'Firefox',
2018-06-08 05:25:12 -04:00
version: '52', // ESR,
name: 'Old Firefox ESR Desktop'
2018-05-18 05:02:40 -04:00
},
{
browserName: 'Firefox',
2018-06-08 05:25:12 -04:00
version: '60',
name: 'Latest Firefox Desktop'
2018-05-18 05:02:40 -04:00
},
{
browserName: 'Edge',
2018-06-08 05:25:12 -04:00
version: '16',
name: 'Latest Edge Desktop'
2018-05-19 07:58:29 -04:00
},
{
browserName: 'Chrome',
device: 'Google Nexus 6',
realMobile: 'true',
2018-06-08 05:25:12 -04:00
os_version: '5.0',
name: 'Latest Chrome Android'
2018-05-19 07:58:29 -04:00
},
2018-05-22 10:02:29 -04:00
{
browserName: 'Safari',
device: 'iPhone SE',
realMobile: 'true',
2018-06-08 05:25:12 -04:00
os_version: '11.2',
name: 'Latest Safari iPhone'
2018-05-22 10:02:29 -04:00
}
2018-05-18 05:02:40 -04:00
],
2018-05-22 10:02:29 -04:00
// maxSessions: 1,
2018-05-19 07:58:29 -04:00
// BrowserStack compatible ports: https://www.browserstack.com/question/664
baseUrl: 'http://localhost:3333/',
2018-05-16 13:59:21 -04:00
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
2018-05-19 07:58:29 -04:00
defaultTimeoutInterval: 45000,
2018-05-22 10:02:29 -04:00
print: function() {}
2018-05-16 13:59:21 -04:00
},
2018-05-22 10:02:29 -04:00
onPrepare() {
2018-05-16 13:59:21 -04:00
require('ts-node').register({
project: require('path').join(__dirname, './tsconfig.e2e.json')
})
2018-05-22 10:02:29 -04:00
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }))
2018-05-16 13:59:21 -04:00
}
}
2018-05-18 05:02:40 -04:00
exports.config.multiCapabilities.forEach(function (caps) {
for (var i in exports.config.commonCapabilities) caps[i] = caps[i] || exports.config.commonCapabilities[i]
})