test: add tdd tests for group integration in member view #373
This commit is contained in:
parent
dce4b2cf33
commit
3b87db6ad1
7 changed files with 864 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ defmodule MvWeb.MemberLive.IndexGroupsDisplayTest do
|
|||
- No badge for members without groups
|
||||
- Badge shows group name correctly
|
||||
"""
|
||||
# async: false to prevent PostgreSQL deadlocks when creating members and groups
|
||||
use MvWeb.ConnCase, async: false
|
||||
import Phoenix.LiveViewTest
|
||||
require Ash.Query
|
||||
|
|
@ -66,6 +67,7 @@ defmodule MvWeb.MemberLive.IndexGroupsDisplayTest do
|
|||
test "displays group badges for members in groups", %{conn: conn, group1: group1, group2: group2} do
|
||||
conn = conn_with_oidc_user(conn)
|
||||
{:ok, _view, html} = live(conn, "/members")
|
||||
|
||||
assert html =~ group1.name
|
||||
assert html =~ group2.name
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue