Skip to content

Commit 649583c

Browse files
committed
docs: fix links
1 parent 3415be1 commit 649583c

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

docs/api/browser/commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ By default, Vitest uses `utf-8` encoding but you can override it with options.
1818
::: tip
1919
This API follows [`server.fs`](https://vitejs.dev/config/server-options.html#server-fs-allow) limitations for security reasons.
2020

21-
If [`browser.api.allowWrite`](/config/browser#browser-api) or [`api.allowWrite`](/config/api#api-allowwrite) are disabled, `writeFile` and `removeFile` functions won't do anything.
21+
If [`browser.api.allowWrite`](/config/browser/api) or [`api.allowWrite`](/config/api#api-allowwrite) are disabled, `writeFile` and `removeFile` functions won't do anything.
2222
:::
2323

2424
```ts

docs/api/browser/locators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ outline: [2, 3]
77

88
A locator is a representation of an element or a number of elements. Every locator is defined by a string called a selector. Vitest abstracts this selector by providing convenient methods that generate them behind the scenes.
99

10-
The locator API uses a fork of [Playwright's locators](https://playwright.dev/docs/api/class-locator) called [Ivya](https://npmjs.com/ivya). However, Vitest provides this API to every [provider](/config/browser#browser-provider), not just playwright.
10+
The locator API uses a fork of [Playwright's locators](https://playwright.dev/docs/api/class-locator) called [Ivya](https://npmjs.com/ivya). However, Vitest provides this API to every [provider](/config/browser/provider), not just playwright.
1111

1212
::: tip
1313
This page covers API usage. To better understand locators and their usage, read [Playwright's "Locators" documentation](https://playwright.dev/docs/locators).

docs/guide/cli-generated.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,20 @@ Specify which IP addresses the server should listen on. Set this to `0.0.0.0` or
7070

7171
Set to true to exit if port is already in use, instead of automatically trying the next available port
7272

73+
### api.allowExec
74+
75+
- **CLI:** `--api.allowExec`
76+
- **Config:** [api.allowExec](/config/api#api-allowexec)
77+
78+
Allow API to execute code. (Be careful when enabling this option in untrusted environments)
79+
80+
### api.allowWrite
81+
82+
- **CLI:** `--api.allowWrite`
83+
- **Config:** [api.allowWrite](/config/api#api-allowwrite)
84+
85+
Allow API to edit files. (Be careful when enabling this option in untrusted environments)
86+
7387
### silent
7488

7589
- **CLI:** `--silent [value]`
@@ -332,6 +346,20 @@ Specify which IP addresses the server should listen on. Set this to `0.0.0.0` or
332346

333347
Set to true to exit if port is already in use, instead of automatically trying the next available port
334348

349+
### browser.api.allowExec
350+
351+
- **CLI:** `--browser.api.allowExec`
352+
- **Config:** [browser.api.allowExec](/config/browser/api#api-allowexec)
353+
354+
Allow API to execute code. (Be careful when enabling this option in untrusted environments)
355+
356+
### browser.api.allowWrite
357+
358+
- **CLI:** `--browser.api.allowWrite`
359+
- **Config:** [browser.api.allowWrite](/config/browser/api#api-allowwrite)
360+
361+
Allow API to edit files. (Be careful when enabling this option in untrusted environments)
362+
335363
### browser.isolate
336364

337365
- **CLI:** `--browser.isolate`

0 commit comments

Comments
 (0)