updated runner to show ALL errors

This commit is contained in:
Gabriel Grubba
2023-05-25 15:30:47 -03:00
parent 184ebac7f9
commit 1d4aa133de

View File

@@ -29,7 +29,7 @@ async function runNextUrl(browser) {
to run more than once. in the console. Test number total: ${ testNumber }`);
console.log(`Tests complete with ${ failCount } failures`);
console.log(`Tests complete with ${ await getPassCount(page) } passes`);
if (failCount > 0) {
if (failCount >= 0) {
const failed = await getFailed(page);
failed.map((f) => console.log(`${ f.name } failed: ${ f.info }`));
await page.close();