Skip to content

Commit 2feab96

Browse files
committed
docs(website): change attribute to conventional one
I didn't realize, but the more common attribute is data-testid instead of data-test-id
1 parent d07ca01 commit 2feab96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docs/handbook/web-testing/page-element-query-language.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ import { Answerable, q } from '@serenity-js/core'
130130
import { By, PageElement } from '@serenity-js/web'
131131

132132
export const byTestId = (dataTestId: Answerable<string>) =>
133-
By.css(q`[data-test-id="${ dataTestId }"]`)
133+
By.css(q`[data-testid="${ dataTestId }"]`)
134134
```
135135

136136
Note that the example above uses [tag function `q`](/api/core/function/q) to concatenate a static string with an [`Answerable<string>`](/api/core/#Answerable).

0 commit comments

Comments
 (0)