pixiebrix-extension icon indicating copy to clipboard operation
pixiebrix-extension copied to clipboard

Include the browser version in playwright test report

Open fungairino opened this issue 1 year ago • 0 comments

The end-to-end playwright report should include annotation with what version of the browser the tests ran on. (https://playwright.dev/docs/test-annotations)

Adding annotations for our tests to include the version of the browser they were running on may be difficult since the context returned from chromium.launchPersistentContext returns null when calling its browser method.

One thing we could do is to just launch a dummy browser using the regular chromium.launch method, get the version and then immediately close it. Alternatively we could execute a shell command to check the executable version of the browser: https://playwright.dev/docs/api/class-browsertype#browser-type-executable-path

fungairino avatar Aug 06 '24 18:08 fungairino