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>
33 lines
984 B
Ruby
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
|