Skip to content

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

chore: update flakiness metadata for better ui presentation (#31528)

Dmitry Gozman1c69d3e17595
diff --git a/tests/android/playwright.config.ts b/tests/android/playwright.config.ts
index 0c0c7fbd3a..4bfeecf186 100644
--- a/tests/android/playwright.config.ts
+++ b/tests/android/playwright.config.ts
@@ -42,7 +42,7 @@ const config: Config<ServerWorkerOptions & PlaywrightWorkerOptions & PlaywrightT
const metadata = {
platform: 'Android',
- headful: false,
+ headless: 'headless',
browserName: 'chromium',
channel: 'chrome',
mode: 'default',
diff --git a/tests/electron/playwright.config.ts b/tests/electron/playwright.config.ts
index 7101dac87f..89bb677718 100644
--- a/tests/electron/playwright.config.ts
+++ b/tests/electron/playwright.config.ts
@@ -44,7 +44,7 @@ const config: Config<PlaywrightWorkerOptions & PlaywrightTestOptions> = {
const metadata = {
platform: process.platform,
- headful: true,
+ headless: 'headed',
browserName: 'electron',
channel: undefined,
mode: 'default',
diff --git a/tests/library/playwright.config.ts b/tests/library/playwright.config.ts
index 8cb0347a1a..0d4804ad6d 100644
--- a/tests/library/playwright.config.ts
+++ b/tests/library/playwright.config.ts
@@ -140,7 +140,7 @@ for (const browserName of browserNames) {
mode,
video: !!video,
trace: !!trace,
- clock: 'clock-' + (process.env.PW_CLOCK || 'default'),
+ clock: process.env.PW_CLOCK ? 'clock-' + process.env.PW_CLOCK : undefined,
},
});
}
diff --git a/tests/playwright-test/playwright.config.ts b/tests/playwright-test/playwright.config.ts
index 6be40d617f..34d4dc6d9f 100644
--- a/tests/playwright-test/playwright.config.ts
+++ b/tests/playwright-test/playwright.config.ts
@@ -50,6 +50,6 @@ export default defineConfig({
],
reporter: reporters(),
metadata: {
- clock: 'clock-' + (process.env.PW_CLOCK || 'default'),
+ clock: process.env.PW_CLOCK ? 'clock-' + process.env.PW_CLOCK : undefined,
},
});
diff --git a/tests/webview2/playwright.config.ts b/tests/webview2/playwright.config.ts
index 6a7ec6ed1b..75ba2ad779 100644
--- a/tests/webview2/playwright.config.ts
+++ b/tests/webview2/playwright.config.ts
@@ -43,7 +43,7 @@ const config: Config<PlaywrightWorkerOptions & PlaywrightTestOptions> = {
const metadata = {
platform: process.platform,
- headful: true,
+ headless: 'headed',
browserName: 'webview2',
channel: undefined,
mode: 'default',
diff --git a/utils/flakiness-dashboard/processing/dashboard_compressed_v1.js b/utils/flakiness-dashboard/processing/dashboard_compressed_v1.js
index 280893437d..bdab4b635c 100644
--- a/utils/flakiness-dashboard/processing/dashboard_compressed_v1.js
+++ b/utils/flakiness-dashboard/processing/dashboard_compressed_v1.js
@@ -37,10 +37,12 @@ function compressReports(reports) {
if (report.config && report.config.projects) {
for (const project of report.config.projects) {
project.metadata = project.metadata || {};
- if (project.metadata.headful === false)
- delete project.metadata.headful;
+ if (project.metadata.headless === 'headless')
+ delete project.metadata.headless;
if (project.metadata.mode === 'default')
delete project.metadata.mode;
+ if (project.metadata.clock === 'default')
+ delete project.metadata.clock;
if (project.metadata.platform && project.metadata.platform.toLowerCase() !== 'android')
delete project.metadata.platform;
// Cleanup a bunch of data from report that