module Turbo::TestAssertions::IntegrationTestAssertions

def assert_no_turbo_stream(status: :ok, **attributes)


assert_no_turbo_stream action: "remove", target: "message_1"

The following assertion would fail:



Given the following HTML response body:

attribute
* :targets [String] matches the element's [targets]
the value will be transformed by calling dom_id
[target] attribute. If the value responds to #to_key,
* :target [String, #to_key] matches the element's
attribute
* :action [String] matches the element's [action]
* :status [Integer, Symbol] the HTTP response status

==== Options

contain a `` element.
Assert that the Turbo Stream request's response body's HTML does not
def assert_no_turbo_stream(status: :ok, **attributes)
  assert_response status
  assert_equal Mime[:turbo_stream], response.media_type
  super(**attributes)
end

def assert_turbo_stream(status: :ok, **attributes, &block)


end
assert_select "template p", text: "Hello!"
assert_turbo_stream action: "replace", target: "message_1" do

The following assertion would pass: