mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add handling to remove unused file and directories in UI testing
This commit is contained in:
parent
3f72eb51a0
commit
7640bc029c
@ -57,6 +57,9 @@ function cleanup(flowFile) {
|
|||||||
deleteFile(homeDir + "/." + flowFile + ".backup");
|
deleteFile(homeDir + "/." + flowFile + ".backup");
|
||||||
deleteFile(homeDir + "/" + credentialFile);
|
deleteFile(homeDir + "/" + credentialFile);
|
||||||
deleteFile(homeDir + "/." + credentialFile + ".backup");
|
deleteFile(homeDir + "/." + credentialFile + ".backup");
|
||||||
|
deleteFile(homeDir + "/package.json");
|
||||||
|
deleteFile(homeDir + "/lib/flows");
|
||||||
|
deleteFile(homeDir + "/lib");
|
||||||
}
|
}
|
||||||
|
|
||||||
function deleteFile(flowFile) {
|
function deleteFile(flowFile) {
|
||||||
@ -66,7 +69,7 @@ function deleteFile(flowFile) {
|
|||||||
fs.unlinkSync(flowFile);
|
fs.unlinkSync(flowFile);
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
};
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
startServer: function() {
|
startServer: function() {
|
||||||
@ -104,7 +107,7 @@ module.exports = {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
browser.url(url);
|
browser.url(url);
|
||||||
browser.waitForExist(".red-ui-palette-node[data-palette-type='inject']")
|
browser.waitForExist(".red-ui-palette-node[data-palette-type='inject']");
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
throw err;
|
throw err;
|
||||||
|
Loading…
Reference in New Issue
Block a user