uninstall any previous element

This commit is contained in:
Girish Ramakrishnan
2024-10-15 16:35:05 +02:00
parent d80249d454
commit 540e8b955a

View File

@@ -40,6 +40,8 @@ describe('Application life cycle test', function () {
if (process.env.CI) chromeOptions.addArguments('no-sandbox', 'disable-dev-shm-usage', 'headless');
browser = new Builder().forBrowser('chrome').setChromeOptions(chromeOptions).build();
if (!fs.existsSync('./screenshots')) fs.mkdirSync('./screenshots');
if (process.env.CI) execSync(`cloudron uninstall --app ${ELEMENT_LOCATION} || true`, EXEC_ARGS);
});
after(function () {