Files
eminuxCRM/test/helpers/application_helper_test.rb
T
eminuxandCursor 3e73e708e4
CI / scan_ruby (push) Failing after 12m54s
CI / scan_js (push) Successful in 12m34s
CI / lint (push) Failing after 13m10s
Rende usabili i filtri destinatari e permette di eliminare le bozze email.
Le listbox non applicavano sport e altri criteri; ora i filtri sono checkbox, c'è «mai contattati» e dal cruscotto si cancellano le bozze. La lista organizzazioni allinea le colonne al foglio campagna.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 07:57:50 +02:00

33 lines
984 B
Ruby

require "test_helper"
class ApplicationHelperTest < ActionView::TestCase
test "priority badge includes dark theme colors" do
html = priority_badge("high")
assert_includes html, "bg-amber-100"
assert_includes html, "dark:bg-amber-950"
assert_includes html, "dark:text-amber-200"
end
test "stage badge includes dark theme colors" do
html = stage_badge("interested")
assert_includes html, "dark:bg-amber-950"
assert_includes html, "dark:text-amber-200"
end
test "status badge includes dark theme colors" do
html = status_badge("prospect")
assert_includes html, "dark:bg-sky-950"
assert_includes html, "dark:text-sky-200"
end
test "table clip keeps a title with the full value" do
html = table_clip("Società affiliata FIPAV con un testo molto lungo da accorciare", length: 20)
assert_includes html, "title=\"Società affiliata FIPAV con un testo molto lungo da accorciare\""
assert_includes html, "…"
end
end