Skip to content

Commit 3347f83

Browse files
authoredAug 7, 2024··
feat(browser): introduce built-in locators (#6084)
1 parent 0453c5a commit 3347f83

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1975
-392
lines changed
 

‎docs/.vitepress/config.ts

+5
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ export default ({ mode }: { mode: string }) => {
185185
link: '/guide/browser/interactivity-api',
186186
docFooterText: 'Interactivity API | Browser Mode',
187187
},
188+
{
189+
text: 'Locators',
190+
link: '/guide/browser/locators',
191+
docFooterText: 'Locators | Browser Mode',
192+
},
188193
{
189194
text: 'Assertion API',
190195
link: '/guide/browser/assertion-api',

‎docs/config/index.md

+11
Original file line numberDiff line numberDiff line change
@@ -1667,6 +1667,17 @@ Should Vitest UI be injected into the page. By default, injects UI iframe during
16671667

16681668
Default iframe's viewport.
16691669

1670+
#### browser.locators {#browser-locators}
1671+
1672+
Options for built-in [browser locators](/guide/browser/locators).
1673+
1674+
##### browser.locators.testIdAttribute
1675+
1676+
- **Type:** `string`
1677+
- **Default:** `data-testid`
1678+
1679+
Attribute used to find elements with `getByTestId` locator.
1680+
16701681
#### browser.screenshotDirectory {#browser-screenshotdirectory}
16711682

16721683
- **Type:** `string`

0 commit comments

Comments
 (0)
Please sign in to comment.