mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +03:00
cleaned up integration test flow
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
const path = require('path');
|
||||
const tmp = require('tmp');
|
||||
const tmpDir = tmp.dirSync({ mode: '0777', prefix: 'integrationTestsTmpDir-' });
|
||||
const mkdirp = require('mkdirp');
|
||||
const rimraf = require('rimraf');
|
||||
const dir = path.join(__dirname, 'integration', 'downloads');
|
||||
|
||||
mkdirp.sync(dir);
|
||||
rimraf.sync(`${dir}${path.sep}*`);
|
||||
|
||||
exports.config = {
|
||||
specs: [path.join(__dirname, './integration/**/*-tests.js')],
|
||||
@@ -16,7 +20,7 @@ exports.config = {
|
||||
'browser.helperApps.neverAsk.openFile': 'text/plain',
|
||||
'browser.helperApps.neverAsk.saveToDisk': 'text/plain',
|
||||
'browser.download.folderList': 2,
|
||||
'browser.download.dir': `${tmpDir.name}`
|
||||
'browser.download.dir': dir
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -29,7 +33,7 @@ exports.config = {
|
||||
deprecationWarnings: true,
|
||||
bail: 0,
|
||||
screenshotOnReject: false,
|
||||
baseUrl: 'http://localhost:8080',
|
||||
baseUrl: 'http://localhost:8000',
|
||||
waitforTimeout: 20000,
|
||||
connectionRetryTimeout: 90000,
|
||||
connectionRetryCount: 3,
|
||||
@@ -39,7 +43,6 @@ exports.config = {
|
||||
mochaOpts: {
|
||||
ui: 'bdd',
|
||||
timeout: 30000,
|
||||
compilers: ['js:babel-register'],
|
||||
retries: 1
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user