2018-05-16 12:59:21 -05: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 06:58:29 -05:00
|
|
|
allScriptsTimeout: 25000,
|
2018-05-16 12:59:21 -05:00
|
|
|
specs: [
|
|
|
|
'./src/**/*.e2e-spec.ts'
|
|
|
|
],
|
2018-05-17 09:33:20 -05:00
|
|
|
|
|
|
|
seleniumAddress: 'http://hub-cloud.browserstack.com/wd/hub',
|
2018-05-18 04:02:40 -05:00
|
|
|
commonCapabilities: {
|
2018-05-17 09:33:20 -05:00
|
|
|
'browserstack.user': process.env.BROWSERSTACK_USER,
|
|
|
|
'browserstack.key': process.env.BROWSERSTACK_KEY,
|
|
|
|
'browserstack.local': true,
|
|
|
|
'project': 'PeerTube'
|
|
|
|
},
|
|
|
|
|
2018-05-18 04:02:40 -05:00
|
|
|
multiCapabilities: [
|
|
|
|
{
|
|
|
|
browserName: 'Chrome',
|
|
|
|
version: '66'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
browserName: 'Safari',
|
|
|
|
version: '11.1'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
browserName: 'Firefox',
|
|
|
|
version: '52' // ESR
|
|
|
|
},
|
|
|
|
{
|
|
|
|
browserName: 'Firefox',
|
|
|
|
version: '60'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
browserName: 'Edge',
|
2018-05-19 06:58:29 -05:00
|
|
|
version: '16'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
browserName: 'Chrome',
|
|
|
|
device: 'Google Nexus 6',
|
|
|
|
realMobile: 'true',
|
|
|
|
os_version: '5.0'
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// browserName: 'Safari',
|
|
|
|
// device: 'iPhone 6s',
|
|
|
|
// realMobile: 'true',
|
|
|
|
// os_version: '9.0'
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// browserName: 'Safari',
|
|
|
|
// device: 'iPhone SE',
|
|
|
|
// realMobile: 'true',
|
|
|
|
// os_version: '11.2'
|
|
|
|
// }
|
2018-05-18 04:02:40 -05:00
|
|
|
],
|
|
|
|
|
2018-05-17 03:55:01 -05:00
|
|
|
maxSessions: 1,
|
2018-05-19 06:58:29 -05:00
|
|
|
// BrowserStack compatible ports: https://www.browserstack.com/question/664
|
|
|
|
baseUrl: 'http://localhost:3333/',
|
2018-05-16 12:59:21 -05:00
|
|
|
framework: 'jasmine',
|
|
|
|
jasmineNodeOpts: {
|
|
|
|
showColors: true,
|
2018-05-19 06:58:29 -05:00
|
|
|
defaultTimeoutInterval: 45000,
|
2018-05-16 12:59:21 -05:00
|
|
|
print: function () {}
|
|
|
|
},
|
|
|
|
|
|
|
|
onPrepare () {
|
|
|
|
require('ts-node').register({
|
|
|
|
project: require('path').join(__dirname, './tsconfig.e2e.json')
|
|
|
|
})
|
|
|
|
jasmine.getEnv().addReporter(new SpecReporter({spec: {displayStacktrace: true}}))
|
|
|
|
}
|
|
|
|
}
|
2018-05-18 04:02:40 -05:00
|
|
|
|
|
|
|
exports.config.multiCapabilities.forEach(function (caps) {
|
|
|
|
for (var i in exports.config.commonCapabilities) caps[i] = caps[i] || exports.config.commonCapabilities[i]
|
|
|
|
})
|