2018-10-02 20:15:02 +00:00
|
|
|
const path = require('path');
|
2022-07-26 17:23:19 +00:00
|
|
|
const fs = require('fs');
|
2018-10-04 00:39:39 +00:00
|
|
|
const rimraf = require('rimraf');
|
|
|
|
const dir = path.join(__dirname, 'integration', 'downloads');
|
|
|
|
|
2022-07-26 17:23:19 +00:00
|
|
|
fs.mkdirSync(dir, {
|
|
|
|
recursive: true
|
|
|
|
});
|
2018-10-04 00:39:39 +00:00
|
|
|
rimraf.sync(`${dir}${path.sep}*`);
|
2018-10-02 20:15:02 +00:00
|
|
|
|
|
|
|
exports.config = {
|
|
|
|
specs: [path.join(__dirname, './integration/**/*-tests.js')],
|
|
|
|
exclude: [],
|
|
|
|
maxInstances: 10,
|
|
|
|
capabilities: [
|
|
|
|
{
|
|
|
|
browserName: 'firefox',
|
|
|
|
'moz:firefoxOptions': {
|
|
|
|
log: { level: 'trace' },
|
|
|
|
prefs: {
|
|
|
|
'browser.download.panel.shown': false,
|
|
|
|
'browser.helperApps.neverAsk.openFile': 'text/plain',
|
|
|
|
'browser.helperApps.neverAsk.saveToDisk': 'text/plain',
|
|
|
|
'browser.download.folderList': 2,
|
2018-10-04 00:39:39 +00:00
|
|
|
'browser.download.dir': dir
|
2018-10-02 20:15:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
pageLoadStrategy: 'normal',
|
|
|
|
watch: false,
|
|
|
|
async: true,
|
|
|
|
logLevel: 'error',
|
|
|
|
coloredLogs: true,
|
|
|
|
deprecationWarnings: true,
|
|
|
|
bail: 0,
|
|
|
|
screenshotOnReject: false,
|
2018-10-04 00:39:39 +00:00
|
|
|
baseUrl: 'http://localhost:8000',
|
2018-10-02 20:15:02 +00:00
|
|
|
waitforTimeout: 20000,
|
|
|
|
connectionRetryTimeout: 90000,
|
|
|
|
connectionRetryCount: 3,
|
|
|
|
services: ['firefox-profile'],
|
|
|
|
framework: 'mocha',
|
|
|
|
reporters: ['dot', 'spec'],
|
|
|
|
mochaOpts: {
|
|
|
|
ui: 'bdd',
|
|
|
|
timeout: 30000,
|
|
|
|
retries: 1
|
|
|
|
}
|
|
|
|
};
|