POC for screenshot when the test errors #853
Labels
dx
developer experience
enhancement
New feature or request
idea 💡
team/k6browser
To distinguish the issue on project boards.
user request
Requested by the community
ux
Milestone
When a test runs, but then fails when we didn't expect it to, the current option for the user is to:
Another tool that could be useful is the ability to view the page that was rendered when the error occurred. For example, let's say we have the following test:
This test works today. What if the link address changes from
browser
tobrowserChrome
? Then the test will fail, with a timeout while waiting for the selectora[href="/browser.php"]
. What would be good is when the timeout occurs, a screenshot is taken of the current rendered page, which could make it a little easier to identify the problem. This feature could be disabled initially, but enabled with a command line flag and/or env var.The text was updated successfully, but these errors were encountered: