Include the browser version in playwright test report #8975
Labels
postmortem action item
an action item created from the result of an incident postmortem meeting
testing
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
The text was updated successfully, but these errors were encountered: