Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include the browser version in playwright test report #8975

Open
fungairino opened this issue Aug 6, 2024 · 0 comments
Open

Include the browser version in playwright test report #8975

fungairino opened this issue Aug 6, 2024 · 0 comments
Labels
postmortem action item an action item created from the result of an incident postmortem meeting testing

Comments

@fungairino
Copy link
Collaborator

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 fungairino added testing postmortem action item an action item created from the result of an incident postmortem meeting labels Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
postmortem action item an action item created from the result of an incident postmortem meeting testing
Projects
None yet
Development

No branches or pull requests

1 participant