Skip to content

Commit c1d71c0

Browse files
committed
fix: use k6/experimental/browser in README.md
1 parent fad4bf2 commit c1d71c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Because xk6-browser roughly adheres to Playwright's browser API, this enables yo
3131
```Typescript
3232
import { check } from 'k6';
3333
import { Options } from 'k6/options';
34-
import { chromium } from 'k6/x/browser';
34+
import { chromium } from 'k6/experimental/browser';
3535
import { clickCheckboxOnk6 } from '@pages/example-page';
3636

3737

@@ -42,7 +42,7 @@ export let options: Options = {
4242

4343
export default async function () {
4444
const browser = chromium.launch({
45-
headless: true
45+
headless: true, args: ['no-sandbox']
4646
});
4747
const context = browser.newContext();
4848
const page = context.newPage();
@@ -111,7 +111,7 @@ This command does the following things:
111111
* Runs the provided transpiled test with k6 using the Dockerfile and docker-compose, which will mount the `./dist` folder to `/dist`, making the tests in there available for the container.
112112

113113
### Assumptions
114-
- The tests need to have the "_test_" word in the name to distinguish them from auxiliary files. You can change the entry [here](./webpack.config.js#L8).
114+
- The tests need to have the "_test_" word in the name to distinguish them from auxiliary files. You can change the entry [here](./webpack.config.js#L8).
115115
- If static files are required then add them to `./assets` folder. Its content gets copied to the destination folder (`dist`) along with compiled scripts.
116116

117117
## Running Playwright tests

0 commit comments

Comments
 (0)