chore(bidi): write custom expectations only for timing out tests (#34270)
This commit is contained in:
parent
c465e21161
commit
201fc48cf0
|
@ -56,8 +56,7 @@ class ExpectationReporter implements Reporter {
|
|||
const outcome = getOutcome(test);
|
||||
// Strip root and project names.
|
||||
const key = test.titlePath().slice(2).join(' › ');
|
||||
if (!expectations.has(key) || expectations.get(key) === 'unknown' ||
|
||||
(expectations.get(key) === 'fail' && outcome === 'pass'))
|
||||
if (outcome === 'timeout')
|
||||
expectations.set(key, outcome);
|
||||
}
|
||||
const keys = Array.from(expectations.keys());
|
||||
|
|
Loading…
Reference in New Issue