debug output from request test, output html in request test

Edit
equivalent Web Development
Public
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>