tests: add tests

This commit is contained in:
carla 2026-02-09 13:34:57 +01:00
parent e1266944b1
commit 9115d53198
6 changed files with 503 additions and 649 deletions

View file

@ -225,7 +225,8 @@ defmodule MvWeb.MemberLive.IndexCustomFieldsSortingTest do
|> element("[data-testid='custom_field_#{field.id}']")
|> render_click()
assert_patch(view, "/members?query=&sort_field=custom_field_#{field.id}&sort_order=asc")
# Patch URL may include fields param (current field selection); assert sort outcome instead
assert has_element?(view, "[data-testid='custom_field_#{field.id}'][aria-label='ascending']")
end
test "NULL values and empty strings are always sorted last (ASC)", %{conn: conn} do