Tighten category deletion regression test

Agent-Logs-Url: https://github.com/we-promise/sure/sessions/200da7a4-fd59-4ae4-a709-f631ccf21e8c

Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-18 17:13:49 +00:00
committed by GitHub
parent 0e85f1d4ea
commit 72efba610f

View File

@@ -13,7 +13,8 @@ class Category::DeletionsControllerTest < ActionDispatch::IntegrationTest
get new_category_deletion_url(@category)
assert_response :success
assert_select "turbo-frame#modal"
assert_match(/<div class="grow py-4 space-y-4 flex flex-col ">/, response.body)
assert_select "turbo-frame#modal dialog > div > div > div.grow.py-4.space-y-4.flex.flex-col", count: 1
assert_select "turbo-frame#modal dialog > div > div > div.overflow-auto", count: 0
end
test "create with replacement" do