test(member-live): update component tests for the new defaults and composite sort
This commit is contained in:
parent
95c25142f0
commit
f847ae10af
2 changed files with 13 additions and 6 deletions
|
|
@ -4,7 +4,13 @@ defmodule MvWeb.Components.FieldVisibilityDropdownComponentTest do
|
|||
|
||||
describe "field visibility dropdown in member view" do
|
||||
test "renders and toggles visibility", %{conn: conn} do
|
||||
conn = conn_with_oidc_user(conn)
|
||||
# Email is folded into the Member cell by default; unfold it so it appears
|
||||
# as its own togglable column in the dropdown.
|
||||
conn =
|
||||
conn
|
||||
|> conn_with_oidc_user()
|
||||
|> Plug.Conn.put_session("member_view_settings", ~s({"member_include_email":false}))
|
||||
|
||||
{:ok, view, _html} = live(conn, ~p"/members")
|
||||
|
||||
# Renders Dropdown
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue