Skip to content

Commit 43ad07f

Browse files
committed
Move key changes
1 parent a842429 commit 43ad07f

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

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

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@ Users no longer need to use the `K6_BROWSER_ENABLED` flag when running browser t
1919
</Blockquote>
2020

2121

22-
## Key changes in the new API
23-
24-
The updated version introduces notable structural changes in its operation and API. Let's take a look at them.
25-
26-
* [Scenario options](#scenario-options) must now be defined for running browser tests.
27-
* The [import path](#import-path) for the browser module has switched from `chromium` to [browser](/javascript-api/k6-experimental/browser/#browser-module-api).
28-
* Browser options can now only be set using certain [environment variables](/javascript-api/k6-experimental/browser/#browser-module-options). The `launch()` method, used earlier for this purpose, has been removed.
29-
* [Simplified resource management](#simplified-resource-management). The browser now starts automatically, managed by the browser module itself. There's no need to use `browser.close()` anymore.
30-
* [Single browser context per iteration](#browser-context-limit). Users can now only run a single [BrowserContext](/javascript-api/k6-experimental/browser/browsercontext/) at a time in the same iteration.
31-
32-
33-
3422
## Before and after comparison
3523

3624
Let's start with an overview of the primary differences between the previous and new versions of the k6 browser API. Subsequent sections will delve into each difference in detail.
@@ -92,6 +80,16 @@ export default async function () {
9280
</CodeGroup>
9381

9482

83+
## Key changes in the new API
84+
85+
The updated version introduces notable structural changes in its operation and API. Let's take a look at them.
86+
87+
* [Scenario options](#scenario-options) must now be defined for running browser tests.
88+
* The [import path](#import-path) for the browser module has switched from `chromium` to [browser](/javascript-api/k6-experimental/browser/#browser-module-api).
89+
* Browser options can now only be set using certain [environment variables](/javascript-api/k6-experimental/browser/#browser-module-options). The `launch()` method, used earlier for this purpose, has been removed.
90+
* [Simplified resource management](#simplified-resource-management). The browser now starts automatically, managed by the browser module itself. There's no need to use `browser.close()` anymore.
91+
* [Single browser context per iteration](#browser-context-limit). Users can now only run a single [BrowserContext](/javascript-api/k6-experimental/browser/browsercontext/) at a time in the same iteration.
92+
9593

9694

9795

0 commit comments

Comments
 (0)