use ammo type table component instead

This commit is contained in:
2022-12-03 18:22:51 -05:00
parent 7191fe8e4b
commit 757eca47f7
16 changed files with 463 additions and 381 deletions

View File

@ -92,6 +92,12 @@ defmodule CanneryWeb.AmmoTypeLiveTest do
|> render_change() =~ ammo_type.bullet_type
assert_patch(index_live, Routes.ammo_type_index_path(conn, :search, "something_else"))
assert index_live
|> form("[data-qa=\"ammo_type_search\"]", search: %{search_term: ""})
|> render_change() =~ ammo_type.bullet_type
assert_patch(index_live, Routes.ammo_type_index_path(conn, :index))
end
test "saves new ammo_type", %{conn: conn, current_user: current_user, ammo_type: ammo_type} do