Skip to content

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

docs: update v1.51 js release notes (#34979)

Dmitry Gozman2dd541bc59f8
diff --git a/docs/src/release-notes-js.md b/docs/src/release-notes-js.md
index ff2927daa2..c0f6d550dd 100644
--- a/docs/src/release-notes-js.md
+++ b/docs/src/release-notes-js.md
@@ -40,16 +40,20 @@ import LiteYouTube from '@site/src/components/LiteYouTube';
});
```
-* Set `gitCommit: 'generate'` property in [`property: TestConfig.metadata`] to capture git information that will be shown in a test report.
+* Set option [`property: TestConfig.captureGitInfo`] to capture git information into [`property: TestConfig.metadata`].
```js title="playwright.config.ts"
import { defineConfig } from '@playwright/test';
export default defineConfig({
- metadata: { gitCommit: 'generate' },
+ captureGitInfo: { commit: true, diff: true }
});
```
+ HTML report will show this information when available:
+
+ ![Git information in the report](https://github.com/user-attachments/assets/9ca4a05a-1485-4521-826b-50568babec3f)
+
### Test runner
* A new [TestStepInfo] object is now available in test steps. You can add step attachments or skip the step under some conditions.