feat: disable email buttons instead hide them

This commit is contained in:
carla 2025-12-15 08:44:24 +01:00 committed by moritz
parent 8bfa5b7d1d
commit 4e86351e1c
3 changed files with 33 additions and 13 deletions

View file

@ -410,14 +410,6 @@ defmodule MvWeb.MemberLive.IndexTest do
assert render(view) =~ "1"
end
test "copy button is not visible when no members are selected", %{conn: conn} do
conn = conn_with_oidc_user(conn)
{:ok, view, _html} = live(conn, "/members")
# Ensure no members are selected (default state)
refute has_element?(view, "#copy-emails-btn")
end
test "copy button is visible when members are selected", %{
conn: conn,
member1: member1