grafana / xk6-browser

The browser module adds support for browser automation and end-to-end web testing via the Chrome Devtools Protocol to k6.
https://grafana.com/docs/k6/latest/javascript-api/k6-browser/
GNU Affero General Public License v3.0
344 stars 41 forks source link

`TestBrowserContextOptionsPermissions` fails with the latest k6 #1516

Open inancgumus opened 3 weeks ago

inancgumus commented 3 weeks ago

What?

The TestBrowserContextOptionsPermissions fails with the latest k6 (~v0.55) after an update to Sobek or its dependencies.

--- FAIL: TestBrowserContextOptionsPermissions (0.00s)
    browser_context_options_test.go:21: 
            Error Trace:    /home/runner/work/xk6-browser/xk6-browser/browser/browser_context_options_test.go:21
            Error:          "[]" should have 2 item(s), but has 0
            Test:           TestBrowserContextOptionsPermissions
    browser_context_options_test.go:22: 
            Error Trace:    /home/runner/work/xk6-browser/xk6-browser/browser/browser_context_options_test.go:22
            Error:          Not equal: 
                            expected: []string{}
                            actual  : []string{"camera", "microphone"}

                            Diff:
                            --- Expected
                            +++ Actual
                            @@ -1,2 +1,4 @@
                            -([]string) {
                            +([]string) (len=2) {
                            + (string) (len=6) "camera",
                            + (string) (len=10) "microphone"
                             }
            Test:           TestBrowserContextOptionsPermissions
FAIL

Why?

Causing CI tests to fail.

https://github.com/grafana/xk6-browser/actions/runs/11698054594/job/32577732943

How?

No response

Tasks

### Tasks
- [ ] #1515
- [ ] Update the k6 release notes and release tasks

Related PR(s)/Issue(s)

No response