module Turbo module TestAssertions module IntegrationTestAssertions # Assert that the Turbo Stream request's response body's HTML contains a # `` element. # # === Options # # * :status [Integer, Symbol] the HTTP response status # * :action [String] matches the element's [action] # attribute # * :target [String, #to_key] matches the element's # [target] attribute. If the value responds to #to_key, # the value will be transformed by calling dom_id # * :targets [String] matches the element's [targets] # attribute # # Given the following HTML response body: # # # # The following assertion would pass: # # assert_turbo_stream action: "remove", target: "message_1" # # You can also pass a block make assertions about the contents of the # element. Given the following HTML response body: # # #