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);
|
const outcome = getOutcome(test);
|
||||||
// Strip root and project names.
|
// Strip root and project names.
|
||||||
const key = test.titlePath().slice(2).join(' › ');
|
const key = test.titlePath().slice(2).join(' › ');
|
||||||
if (!expectations.has(key) || expectations.get(key) === 'unknown' ||
|
if (outcome === 'timeout')
|
||||||
(expectations.get(key) === 'fail' && outcome === 'pass'))
|
|
||||||
expectations.set(key, outcome);
|
expectations.set(key, outcome);
|
||||||
}
|
}
|
||||||
const keys = Array.from(expectations.keys());
|
const keys = Array.from(expectations.keys());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue