debug output from request test, output html in request test
Rails
RSpec
whole response as html
it do get "/" puts Nokogiri::HTML(response.body).to_xhtml(indent: 2) end
part of the response
e.g just in <main> tag
puts Nokogiri::HTML(response.body).css('main').to_xhtml(indent: 2)
turbo stream response & <tempate>
will not work - more info https://ahow.app/notes/2220-rspec-content-matchers-for-turbo-stream-response