Web:Files/People:Tests: delete screenshotOutput when model translation tests begin

This commit is contained in:
Timofey Boyko 2022-05-19 15:07:38 +03:00
parent 830491e7ca
commit 00fcb61aa7
2 changed files with 13 additions and 1 deletions

View File

@ -63,6 +63,12 @@ if (isTranslation) {
fs.mkdir(diffFolder, { recursive: true }, (err) => { fs.mkdir(diffFolder, { recursive: true }, (err) => {
if (err) throw err; if (err) throw err;
}); });
if (isModel) {
fs.rmdir(screenshotOutput, { recursive: true }, (err) => {
if (err) throw err;
});
}
} }
exports.config = { exports.config = {
@ -72,7 +78,7 @@ exports.config = {
Playwright: { Playwright: {
url: "http://localhost:8092", url: "http://localhost:8092",
// show browser window // show browser window
show: false, show: true,
browser: browser, browser: browser,
// restart browser between tests // restart browser between tests
restart: true, restart: true,

View File

@ -58,6 +58,12 @@ if (isTranslation) {
fs.mkdir(diffFolder, { recursive: true }, (err) => { fs.mkdir(diffFolder, { recursive: true }, (err) => {
if (err) throw err; if (err) throw err;
}); });
if (isModel) {
fs.rmdir(screenshotOutput, { recursive: true }, (err) => {
if (err) throw err;
});
}
} }
exports.config = { exports.config = {