Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore(bidi): mark test expected to timeout as fixme (#34176)
Yury Semikhatsky7769010e6e14
diff --git a/tests/bidi/csvReporter.ts b/tests/bidi/csvReporter.tsindex 1da6b6b697..f227550ef3 100644--- a/tests/bidi/csvReporter.ts+++ b/tests/bidi/csvReporter.ts@@ -45,15 +45,21 @@ class CsvReporter implements Reporter {for (const project of this._suite.suites) {for (const file of project.suites) {for (const test of file.allTests()) {- if (test.ok())+ // Report fixme tests as failing.+ const fixme = test.annotations.find(a => a.type === 'fixme');+ if (test.ok() && !fixme)continue;const row = [];row.push(csvEscape(`${file.title} :: ${test.title}`));row.push(test.expectedStatus);row.push(test.outcome());- const result = test.results.find(r => r.error);- const errorMessage = stripAnsi(result?.error?.message.replace(/\s+/g, ' ').trim().substring(0, 1024));- row.push(csvEscape(errorMessage ?? ''));+ if (fixme) {+ row.push('fixme' + (fixme.description ? `: ${fixme.description}` : ''));+ } else {+ const result = test.results.find(r => r.error);+ const errorMessage = stripAnsi(result?.error?.message.replace(/\s+/g, ' ').trim().substring(0, 1024));+ row.push(csvEscape(errorMessage ?? ''));+ }rows.push(row);}}diff --git a/tests/config/browserTest.ts b/tests/config/browserTest.tsindex 8477359407..7836b2e38c 100644--- a/tests/config/browserTest.ts+++ b/tests/config/browserTest.ts@@ -188,8 +188,7 @@ const test = baseTest.extend<BrowserTestTestFixtures, BrowserTestWorkerFixtures>}, { scope: 'worker' }],autoSkipBidiTest: [async ({ bidiTestSkipPredicate }, run) => {- if (bidiTestSkipPredicate(test.info()))- test.skip(true);+ test.fixme(bidiTestSkipPredicate(test.info()), 'marked as timeout in bidi expectations');await run();}, { auto: true, scope: 'test' }],});