Skip to content

Commit c58f614

Browse files
Apply suggestions from code review
Co-authored-by: Heitor Tashiro Sergent <[email protected]>
1 parent a6c4156 commit c58f614

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/data/markdown/translated-guides/en/03 Using k6 browser/01 Overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This module aims to provide rough compatibility with the Playwright API, so you
1313

1414
<Blockquote mod="note" title="">
1515

16-
To work with the browser module, ensure you are using the latest [k6 version](https://github.com/grafana/k6/releases), and install a Chromium-based browser on your machine.
16+
To work with the browser module, make sure you are using the latest [k6 version](https://github.com/grafana/k6/releases), and install a Chromium-based browser on your machine (such as [Google Chrome](https://www.google.com/chrome/)).
1717

1818
</Blockquote>
1919

src/data/markdown/translated-guides/en/03 Using k6 browser/04 Migrating to k6 v0-46.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Before:
173173

174174
```javascript
175175
export default async function () {
176-
const remoteURL = 'your remote URL here'
176+
const remoteURL = 'REMOTE_URL'
177177
const browser = chromium.connect(wsURL);
178178
const page = browser.newPage();
179179
}
@@ -186,7 +186,7 @@ After:
186186
<CodeGroup labels={["Bash", "Docker", "Windows: CMD", "Windows: PowerShell"]} lineNumbers={[false]}>
187187

188188
```bash
189-
$ K6_BROWSER_WS_URL='your remote URL here' k6 run script.js
189+
$ K6_BROWSER_WS_URL='REMOTE_URL' k6 run script.js
190190
```
191191

192192
```bash
@@ -200,15 +200,15 @@ $ K6_BROWSER_WS_URL='your remote URL here' k6 run script.js
200200
#
201201
# You can find an example of a hardened SECCOMP profile in:
202202
# https://raw.githubusercontent.com/jfrazelle/dotfiles/master/etc/docker/seccomp/chrome.json.
203-
docker run --rm -i -e K6_BROWSER_WS_URL='your remote URL here' grafana/k6:master-with-browser run - <script.js
203+
docker run --rm -i -e K6_BROWSER_WS_URL='REMOTE_URL' grafana/k6:master-with-browser run - <script.js
204204
```
205205

206206
```bash
207-
C:\k6> set "K6_BROWSER_WS_URL='your remote URL here'" && set "K6_BROWSER_TIMEOUT='60s' && k6 run script.js
207+
C:\k6> set "K6_BROWSER_WS_URL='REMOTE_URL'" && set "K6_BROWSER_TIMEOUT='60s' && k6 run script.js
208208
```
209209
210210
```bash
211-
PS C:\k6> $env:K6_BROWSER_WS_URL='your remote URL here' ; k6 run script.js
211+
PS C:\k6> $env:K6_BROWSER_WS_URL='REMOTE_URL' ; k6 run script.js
212212
```
213213
214214
</CodeGroup>

0 commit comments

Comments
 (0)