Skip to content

Commit db3bb6e

Browse files
mdcruzka3de
authored andcommitted
document windows commands explicitly in the browser docs
1 parent 0ed03ea commit db3bb6e

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/data/markdown/translated-guides/en/03 Using k6 browser/02 Running browser tests.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,21 @@ To run a simple local script:
5858

5959
2. Then, run the test on your terminal with this command:
6060

61-
<CodeGroup labels={["CLI"]}>
61+
<CodeGroup labels={["Bash", "Windows: CMD", "Windows: PowerShell"]} lineNumbers={[false]}>
6262

63-
```bash
64-
$ K6_BROWSER_ENABLED=true k6 run script.js
65-
```
63+
```bash
64+
$ K6_BROWSER_ENABLED=true k6 run script.js
65+
```
6666

67-
</CodeGroup>
67+
```bash
68+
C:\k6> set "K6_BROWSER_ENABLED=true" && k6 run script.js
69+
```
70+
71+
```bash
72+
PS C:\k6> $env:K6_BROWSER_ENABLED=true ; k6 run script.js
73+
```
74+
75+
</CodeGroup>
6876

6977
## Interact with elements on your webpage
7078

0 commit comments

Comments
 (0)