mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-3596] Fix e2e due to process header properties changes (#5873)
* [ACA-3596] Fix e2e due to process header properties changes * Change pages structure * Move the build demoshell as last step and exclude for PR * move more pages * change testing pkg * better JSON import * update script * move CLOUD in the right place * some logs and not used methods * retrycout Co-authored-by: maurizio vitale <maurizio.vitale@alfresco.com> Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com> Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
This commit is contained in:
@@ -14,6 +14,8 @@ function buildNumber() {
|
||||
}
|
||||
|
||||
async function uploadScreenshot(retryCount) {
|
||||
console.log(`Start uploading failures screenshot ${retryCount}`);
|
||||
|
||||
let files = fs.readdirSync(path.join(__dirname, '../e2e-output/screenshots'));
|
||||
|
||||
if (files && files.length > 0) {
|
||||
@@ -72,22 +74,6 @@ async function uploadScreenshot(retryCount) {
|
||||
}
|
||||
}
|
||||
|
||||
async function cleanReportFolder() {
|
||||
const reportsFolder = path.resolve(__dirname, '../e2e-output/junit-report/');
|
||||
|
||||
fs.exists(reportsFolder, function (exists, error) {
|
||||
if (exists) {
|
||||
rimraf(reportsFolder, function (err) {
|
||||
});
|
||||
}
|
||||
|
||||
if (error) {
|
||||
console.error('[ERROR] fs', error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
uploadScreenshot: uploadScreenshot,
|
||||
cleanReportFolder: cleanReportFolder
|
||||
uploadScreenshot: uploadScreenshot
|
||||
};
|
||||
|
Reference in New Issue
Block a user