Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore(bidi): write custom expectations only for timing out tests (#34270)

Yury Semikhatsky201fc48cf05f
diff --git a/tests/bidi/expectationReporter.ts b/tests/bidi/expectationReporter.ts
index 65371165ff..c31cb74aaf 100644
--- a/tests/bidi/expectationReporter.ts
+++ b/tests/bidi/expectationReporter.ts
@@ -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());