fix tests
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/promote/production Build is failing

This commit is contained in:
carla 2026-03-11 11:40:32 +01:00
parent 762402adf9
commit 03d91d4029
4 changed files with 7 additions and 7 deletions

View file

@ -78,7 +78,7 @@ defmodule MvWeb.Components.MemberFilterComponentTest do
html = render(view)
# Should have both "Payments" and "Custom Fields" group labels
assert html =~ gettext("Payments") || html =~ "Payment"
assert html =~ gettext("Custom Fields")
assert html =~ gettext("Individual datafields")
end
test "renders only payment filter when no boolean custom fields exist", %{conn: conn} do

View file

@ -77,7 +77,7 @@ defmodule MvWeb.CustomFieldLive.DeletionTest do
# Edit mode: section titles must not reappear when modal opens (regression)
refute has_element?(view, "h2", "Member fields")
refute has_element?(view, "h2", "Custom fields")
refute has_element?(view, "h2", "Individual datafields")
# Should show correct member count (1 member)
assert render(view) =~ "1 member has a value assigned for this datafield"

View file

@ -52,7 +52,7 @@ defmodule MvWeb.MemberLive.ShowTest do
{:ok, _view, html} = live(conn, ~p"/members/#{member}")
# Custom Fields section should be visible
assert html =~ gettext("Custom Fields")
assert html =~ gettext("Individual datafields")
# Custom field label should be visible
assert html =~ custom_field.name
@ -97,7 +97,7 @@ defmodule MvWeb.MemberLive.ShowTest do
{:ok, _view, html} = live(conn, ~p"/members/#{member}")
# Custom Fields section should be visible
assert html =~ gettext("Custom Fields")
assert html =~ gettext("Individual datafields")
# Both field labels should be visible
assert html =~ field1.name