fix(playwright): do not check for skipped tests

This commit is contained in:
Ana Margarida Silva 2024-04-18 10:11:44 +01:00
parent 7eccbf7ff1
commit c19ebab122
No known key found for this signature in database
GPG key ID: 133F7B01F252DD26

View file

@ -296,7 +296,7 @@ export class TestCase extends Base implements reporterTypes.TestCase {
return 'expected'; return 'expected';
if (failures.length === results.length) // all failed if (failures.length === results.length) // all failed
return 'unexpected'; return 'unexpected';
if (failures.length && skipped.length && !passed.length) // some failed, none succeeded and the rest were skipped if (failures.length && !passed.length) // some failed, none succeeded
return 'unexpected'; return 'unexpected';
return 'flaky'; // mixed bag return 'flaky'; // mixed bag
} }