Skip to content

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

docs: fix release notes docs (#11407)

Andrey Lushnikov0b040e5abd12
diff --git a/docs/src/release-notes-js.md b/docs/src/release-notes-js.md
index b38d5a35af..4c2332bc46 100644
--- a/docs/src/release-notes-js.md
+++ b/docs/src/release-notes-js.md
@@ -11,7 +11,12 @@ title: "Release notes"
- [`method: Locator.dragTo`]
- [`expect(locator).toBeChecked({ checked })`](./api/class-locatorassertions#locator-assertions-to-be-checked)
-- Each locator can now be optionally filtered by the text it contains: [`locator('button', { hasText: 'Submit' })`](./api/class-locator#locator-locator-option-has-text)
+- Each locator can now be optionally filtered by the text it contains:
+ ```js
+ await page.locator('li', { hasText: 'my item' }).locator('button').click();
+ ```
+ Read more in [locator documentation](./api/class-locator#locator-locator-option-has-text)
+
### Testing API improvements