fix: implement review comments
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
65581d0639
commit
ace59bbae6
7 changed files with 43 additions and 37 deletions
|
|
@ -52,9 +52,8 @@ defmodule MvWeb.MemberLive.IndexGroupsAccessibilityTest do
|
|||
conn = conn_with_oidc_user(conn)
|
||||
{:ok, view, html} = live(conn, "/members")
|
||||
|
||||
# Verify badges have accessibility attributes
|
||||
# Badges should have role="status" and aria-label describing the group
|
||||
assert html =~ ~r/role=["']status["']/ or html =~ ~r/aria-label=.*#{group1.name}/
|
||||
# Verify badges have role="status" and aria-label containing the group name
|
||||
assert has_element?(view, "span[role='status'][aria-label*='#{group1.name}']")
|
||||
assert html =~ group1.name
|
||||
|
||||
# Verify member1's row contains the badge
|
||||
|
|
@ -84,12 +83,10 @@ defmodule MvWeb.MemberLive.IndexGroupsAccessibilityTest do
|
|||
conn: conn
|
||||
} do
|
||||
conn = conn_with_oidc_user(conn)
|
||||
{:ok, view, html} = live(conn, "/members")
|
||||
{:ok, view, _html} = live(conn, "/members")
|
||||
|
||||
# Verify sort header has aria-label
|
||||
# Sort header should have aria-label describing the sort state
|
||||
assert html =~ ~r/aria-label=.*[Gg]roup/ or
|
||||
has_element?(view, "[data-testid='groups'][aria-label]")
|
||||
# Verify sort header has aria-label describing the sort state
|
||||
assert has_element?(view, "[data-testid='groups'][aria-label]")
|
||||
end
|
||||
|
||||
@tag :ui
|
||||
|
|
@ -170,7 +167,7 @@ defmodule MvWeb.MemberLive.IndexGroupsAccessibilityTest do
|
|||
|> Ash.create(actor: system_actor)
|
||||
|
||||
conn = conn_with_oidc_user(conn)
|
||||
{:ok, view, html} = live(conn, "/members")
|
||||
{:ok, _view, html} = live(conn, "/members")
|
||||
|
||||
# Verify multiple badges are present
|
||||
assert html =~ member1.first_name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue