Merge pull request #299 from rubys/fix-boost-soft-keyboard-action

Wire the inline boost link to the soft keyboard
This commit is contained in:
Stanko Krtalić
2026-10-05 16:16:25 +02:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
@@ -6,6 +6,13 @@ class Messages::BoostsControllerTest < ActionDispatch::IntegrationTest
@message = messages(:first)
end
test "index wires the new boost link to the soft keyboard" do
get message_boosts_url(@message)
assert_response :success
assert_select ".message__boost-inline a.boost__action[data-action='soft-keyboard#open']"
end
test "create" do
assert_turbo_stream_broadcasts [ @message.room, :messages ], count: 1 do
assert_difference -> { @message.boosts.count }, 1 do