From 0b040e5abd125f9545e4979ecf2dddf16b0898a8 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Fri, 14 Jan 2022 11:05:03 -0700 Subject: [PATCH] docs: fix release notes docs (#11407) --- docs/src/release-notes-js.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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