Feature Request: Save page HTML when system test fails

Hi all!

I read in the contributing guide that feature requests should be posted here:

https://github.com/rails/rails/blob/master/CONTRIBUTING.md#do-you-intend-to-add-a-new-feature-or-change-an-existing-one

I’ve been searching and I haven’t found this being asked already, so here it goes. I see the system tests save a screenshot when a test fails, which is super useful, but sometimes it’s be good to have the rendered HTML too.

Is this feasible? Does this sound reasonable?

Thanks!

I would like that as an option.

I also want this and already have an implementation based on ScreenshotHelper. Did you ever get something implemented? If I don’t hear back I’ll open a PR with my change.

Nevermind. I see it is in Rails 6.1.

1 Like