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,
|
2020-08-26 07:38:34 -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,
|
2020-05-12 09:38:55 -05:00
|
|
|
'browserstack.console': 'verbose',
|
|
|
|
'browserstack.networkLogs': true,
|
|
|
|
'browserstack.debug': true,
|
2020-05-11 02:41:39 -05:00
|
|
|
project: 'PeerTube',
|
2020-05-12 09:38:55 -05:00
|
|
|
build: 'Main',
|
2020-05-11 02:41:39 -05:00
|
|
|
name: 'Bstack-[Protractor] Parallel Test'
|
2018-05-17 09:33:20 -05:00
|
|
|
},
|
|
|
|
|
2018-05-18 04:02:40 -05:00
|
|
|
multiCapabilities: [
|
2020-05-13 03:15:31 -05:00
|
|
|
{
|
|
|
|
browserName: 'Safari',
|
|
|
|
version: '11.1',
|
|
|
|
name: 'Safari Desktop',
|
|
|
|
resolution: '1280x1024'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
browserName: 'Chrome',
|
|
|
|
name: 'Latest Chrome Desktop',
|
|
|
|
resolution: '1280x1024'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
browserName: 'Firefox',
|
2021-03-04 03:53:38 -06:00
|
|
|
version: '68', // ESR
|
2020-05-13 03:15:31 -05:00
|
|
|
name: 'Firefox ESR Desktop',
|
|
|
|
resolution: '1280x1024'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
browserName: 'Firefox',
|
|
|
|
name: 'Latest Firefox Desktop',
|
|
|
|
resolution: '1280x1024'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
browserName: 'Edge',
|
|
|
|
name: 'Latest Edge Desktop',
|
|
|
|
resolution: '1280x1024'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
browserName: 'Chrome',
|
|
|
|
device: 'Google Nexus 6',
|
2020-12-15 04:45:29 -06:00
|
|
|
real_mobile: 'true',
|
2020-05-13 03:15:31 -05:00
|
|
|
os_version: '5.0',
|
|
|
|
name: 'Latest Chrome Android'
|
|
|
|
},
|
2018-05-18 04:02:40 -05:00
|
|
|
{
|
|
|
|
browserName: 'Safari',
|
2020-12-15 04:45:29 -06:00
|
|
|
device: 'iPhone 8 Plus',
|
|
|
|
real_mobile: 'true',
|
|
|
|
os_version: '11',
|
2020-05-12 09:38:55 -05:00
|
|
|
name: 'Safari iPhone'
|
2020-08-07 07:03:46 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
browserName: 'Safari',
|
|
|
|
device: 'iPad 7th',
|
2020-12-15 04:45:29 -06:00
|
|
|
real_mobile: 'true',
|
2020-08-07 07:03:46 -05:00
|
|
|
os_version: '13',
|
|
|
|
name: 'Safari iPad'
|
2018-05-22 09:02:29 -05:00
|
|
|
}
|
2018-05-18 04:02:40 -05:00
|
|
|
],
|
|
|
|
|
2020-05-11 03:48:58 -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-22 09:02:29 -05:00
|
|
|
print: function() {}
|
2018-05-16 12:59:21 -05:00
|
|
|
},
|
|
|
|
|
2018-05-22 09:02:29 -05:00
|
|
|
onPrepare() {
|
2018-05-16 12:59:21 -05:00
|
|
|
require('ts-node').register({
|
2021-08-17 07:42:53 -05:00
|
|
|
project: require('path').join(__dirname, './tsconfig.json')
|
2018-05-16 12:59:21 -05:00
|
|
|
})
|
2020-08-26 07:38:34 -05:00
|
|
|
jasmine.getEnv().addReporter(new SpecReporter({
|
|
|
|
spec: { displayStacktrace: 'raw' }
|
|
|
|
}))
|
2018-05-16 12:59:21 -05:00
|
|
|
}
|
|
|
|
}
|
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]
|
|
|
|
})
|