Skip to content

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

test: add "clock" to the metadata for dashboard traceability (#31370)

Dmitry Gozman6ae9adfa4fed
diff --git a/tests/library/playwright.config.ts b/tests/library/playwright.config.ts
index 9ab64c22be..a70c1f5e6d 100644
--- a/tests/library/playwright.config.ts
+++ b/tests/library/playwright.config.ts
@@ -134,6 +134,7 @@ for (const browserName of browserNames) {
mode,
video: !!video,
trace: !!trace,
+ clock: 'clock-' + (process.env.PW_CLOCK || 'default'),
},
});
}
diff --git a/tests/playwright-test/playwright.config.ts b/tests/playwright-test/playwright.config.ts
index 8536ed992e..6be40d617f 100644
--- a/tests/playwright-test/playwright.config.ts
+++ b/tests/playwright-test/playwright.config.ts
@@ -49,4 +49,7 @@ export default defineConfig({
},
],
reporter: reporters(),
+ metadata: {
+ clock: 'clock-' + (process.env.PW_CLOCK || 'default'),
+ },
});