Skip to content

Commit 953845b

Browse files
authored
slight refactor to browser code (#1374)
1 parent 06b44da commit 953845b

File tree

4 files changed

+1
-67
lines changed

4 files changed

+1
-67
lines changed

src/data/markdown/docs/02 javascript api/07 k6-experimental/01 browser.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ export const options = {
5959
},
6060
},
6161
},
62-
thresholds: {
63-
checks: ["rate==1.0"]
64-
}
6562
}
6663

6764
export default async function () {
@@ -242,9 +239,6 @@ export const options = {
242239
},
243240
},
244241
},
245-
thresholds: {
246-
checks: ["rate==1.0"]
247-
}
248242
}
249243

250244
export default async function () {

src/data/markdown/docs/02 javascript api/07 k6-experimental/01 browser/01 Browser module.md

Lines changed: 0 additions & 53 deletions
This file was deleted.

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ export const options = {
5151
}
5252

5353
export default async function () {
54-
const context = browser.newContext();
55-
const page = context.newPage();
54+
const page = browser.newPage();
5655

5756
try {
5857
await page.goto('https://test.k6.io/my_messages.php');

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ Note that providing an `executor` and setting the `browser` scenario option's `t
4040
},
4141
},
4242
},
43-
thresholds: {
44-
checks: ["rate==1.0"]
45-
}
4643
}
4744

4845
export default async function () {
@@ -169,9 +166,6 @@ export const options = {
169166
},
170167
},
171168
},
172-
thresholds: {
173-
checks: ["rate==1.0"]
174-
}
175169
}
176170

177171
export default async function () {

0 commit comments

Comments
 (0)