Closed hverlin closed 4 days ago
Hello @hverlin,
Unfortunately, we cannot take this enhancement to work, since we are currently focused on other tasks. We may reconsider this task priority in the future if we get requests for it. You can create a PR with the described functionality, and we will review and accept it if everything is ok.
Thank you for the quick answer. I will just go with a local patch for now.
I will close this issue for now. If more users request this feature, we will reopen it. In the meantime, you can share your patch so other users can benefit from it if needed.
The patch shared here will work with Chrome at least. It can be applied with pnpm patch
or other similar tools
What is your Scenario?
When a test fails, it's useful to have a screenshot/video. However, sometimes the screenshot/video looks ok in CI and it's hard to see why a selector did not match.
What are you suggesting?
Add a configuration (like for screenshots) to take a "DOM screenshot" on failure.
What alternatives have you considered?
Such a patch can be applied locally (for example for Chrome)
Additional context
There is a similar request here which was not really addressed: https://github.com/DevExpress/testcafe/issues/4910