Skip to content
Snippets Groups Projects
Verified Commit ca681a75 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: wip web tests

parent fc8a9b22
No related branches found
No related tags found
No related merge requests found
...@@ -79,13 +79,16 @@ if (!config.browser) { ...@@ -79,13 +79,16 @@ if (!config.browser) {
console.log('Tests failed:', failures); console.log('Tests failed:', failures);
console.log('Duration:', duration); console.log('Duration:', duration);
if (error.length > 0) { await page.screenshot({ path: 'screenshot.png' });
await browser.close();
if (error.length > 0 || failures > 0) {
console.error('Tests failed: ', error); console.error('Tests failed: ', error);
process.exit(1);
} else { } else {
console.log('Tests passed'); console.log('Tests passed');
} }
await page.screenshot({ path: 'screenshot.png' });
await browser.close();
})(); })();
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment