Make filters into a simple form

This commit is contained in:
Jose Farias
2024-11-14 21:50:38 -06:00
parent b6c4ba3b32
commit fb04249209
11 changed files with 63 additions and 120 deletions
@@ -1,16 +0,0 @@
require "test_helper"
class FilterChipsControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in_as :kevin
end
test "create" do
post filter_chips_url(format: :turbo_stream), params: { text: "for David", name: "assignee_ids[]", value: users(:david).id, frame: "assignee_chips" }
assert_response :success
assert_turbo_stream action: :remove, target: "assignee_ids[]__filter--#{users(:david).id}"
assert_turbo_stream action: :append, target: "assignee_chips"
assert_select "button", text: "for David"
end
end