|
| 1 | +xk6-browser v0.7.0 is here! :tada: |
| 2 | + |
| 3 | +We've been busy preparing for big changes in the future, so this minor release is smaller than usual. It contains a new feature to unblock users using `dialog` boxes, a fix, and internal improvements. |
| 4 | + |
| 5 | + |
| 6 | +## Experimental Module Merge into k6 |
| 7 | + |
| 8 | +We're excited to reveal that in an upcoming future release of `k6` you will be able to run browser tests -- we're merging `xk6-browser` into `k6`. The merge will expose the browser tests via an experimental module importable with `k6/experimental/browser`, so expect a small breaking change there. We now have a solid foundation, and to help us shape it into a better tool we need more people to use it; this is why we're doing the merge. It's worth noting that we're not merging the two code bases into a single one. |
| 9 | + |
| 10 | +This might mean we will eventually stop releasing new versions of `xk6-browser` binaries, and instead point people to the latest release of `k6`. When it comes to building `xk6-browser` from source, that won't change, so you will still be able to build from source the same way you have been doing so already. |
| 11 | + |
| 12 | + |
| 13 | +## Bugs fixed |
| 14 | + |
| 15 | +- `xk6-browser` no longer panics when it navigates to a website that contains `iframes` which themselves navigate to a different origin to the main `frame` (e.g. a website containing an embedded Youtube video). ([#677](https://github.com/grafana/xk6-browser/pull/677)) |
| 16 | + |
| 17 | + |
| 18 | +## New features |
| 19 | + |
| 20 | +- `xk6-browser` will now automatically dismiss dialog boxes (`alert`, `confirm`, `prompt`, and `beforeunload`). ([#663](https://github.com/grafana/xk6-browser/pull/663)) |
| 21 | + |
| 22 | + |
| 23 | +## Improvements |
| 24 | + |
| 25 | +- Improved launching of a browser without providing any options. ([#649](https://github.com/grafana/xk6-browser/pull/649)) |
| 26 | + |
| 27 | + We couldn't launch a new browser without providing an empty object. We've fixed this, so now you can launch a new browser without an empty object. |
| 28 | + |
| 29 | + With the empty object: |
| 30 | + |
| 31 | + ```js |
| 32 | + const browser = chromium.launch({}); |
| 33 | + ``` |
| 34 | + |
| 35 | + Without the empty object: |
| 36 | + |
| 37 | + ```js |
| 38 | + const browser = chromium.launch(); |
| 39 | + ``` |
| 40 | + |
| 41 | + |
| 42 | +### Documentation |
| 43 | + |
| 44 | +- Updated the demo video on our README. ([#639](https://github.com/grafana/xk6-browser/pull/639)) |
| 45 | + |
| 46 | + Now it shows the usage for xk6-browser version v0.6.0 and above. |
| 47 | + |
| 48 | +- Simplified the README. ([#656](https://github.com/grafana/xk6-browser/pull/656)) |
| 49 | + |
| 50 | + You can now find the documentation [here](https://k6.io/docs/javascript-api/xk6-browser/). |
| 51 | + |
| 52 | +- Updated the project roadmap. ([#658](https://github.com/grafana/xk6-browser/pull/658)) |
| 53 | + |
| 54 | + |
| 55 | +## Internals |
| 56 | + |
| 57 | +- Upgraded `k6` dependency to `v0.42.0`. ([#?](https://github.com/grafana/xk6-browser/pull/?)) |
| 58 | + |
| 59 | +- Refactored the lifecycle events code. ([#647](https://github.com/grafana/xk6-browser/pull/647), [#644](https://github.com/grafana/xk6-browser/pull/644)) |
| 60 | + |
| 61 | + This shouldn't change any existing behavior, but if you notice anything that doesn't work as expected, please let us know. |
| 62 | + |
| 63 | +- Cleanup unused dependencies. ([#674](https://github.com/grafana/xk6-browser/pull/674)) |
| 64 | + |
| 65 | +### Experimental Module Merge into k6 |
| 66 | + |
| 67 | +Here are some internal changes that will help us achieve the merge goal in the near future (we still have some more work to do before we can do the merge): |
| 68 | + |
| 69 | +- `xk6-browser` will not automatically be registered under `k6/x/browser`, and in the future it will be importable from `k6/experimental/browser`. ([#667](https://github.com/grafana/xk6-browser/pull/667)) |
| 70 | + |
| 71 | +- `xk6-browser` can now be disabled via configuration, e.g. in restricted environments. ([#665](https://github.com/grafana/xk6-browser/pull/665)) |
| 72 | + |
| 73 | +- Fixed `k6` network `Hosts` incompatibility. ([#671](https://github.com/grafana/xk6-browser/pull/671)) |
0 commit comments