From 5d21e3729cdcdda71927ffe17e0d10285b4851da Mon Sep 17 00:00:00 2001 From: Debbie O'Brien Date: Mon, 6 May 2024 19:11:45 +0200 Subject: [PATCH] docs: fix example for accessible description (#30672) --- docs/src/release-notes-js.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/release-notes-js.md b/docs/src/release-notes-js.md index 4d2abbde7c..90c0c395f7 100644 --- a/docs/src/release-notes-js.md +++ b/docs/src/release-notes-js.md @@ -21,7 +21,7 @@ import LiteYouTube from '@site/src/components/LiteYouTube'; - [`method: LocatorAssertions.toHaveAccessibleDescription`] checks if the element has the specified accessible description: ```js const locator = page.getByRole('button'); - await expect(locator).toHaveAccessibleName('Upload the photo'); + await expect(locator).toHaveAccessibleDescription('Upload a photo'); ``` - [`method: LocatorAssertions.toHaveRole`] checks if the element has the specified ARIA role: