mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
* [ACA-3799] add prefix filter * add smart runner * fix resolve * add some configuration for smartrunner * simplify * fix * we need to pass invertGrep in the devServerTarget because Angular overwrite it if you use the dev server
22 lines
657 B
JavaScript
22 lines
657 B
JavaScript
const uploadOutput = require('../utils/upload-output');
|
|
|
|
const SAVE_SCREENSHOT = process.env.SAVE_SCREENSHOT === 'true';
|
|
|
|
async function afterLaunch() {
|
|
|
|
if (SAVE_SCREENSHOT) {
|
|
console.log(`Save screenshot is ${SAVE_SCREENSHOT}, trying to save screenshots.`);
|
|
|
|
try {
|
|
await uploadOutput();
|
|
console.log('Screenshots saved successfully.');
|
|
} catch (e) {
|
|
console.log('Error happened while trying to upload screenshots and test reports: ', e);
|
|
}
|
|
} else {
|
|
console.log(`Save screenshot is ${SAVE_SCREENSHOT}, no need to save screenshots.`);
|
|
}
|
|
}
|
|
|
|
module.exports = afterLaunch;
|