Tests: data-testid selectors, scoped delete, sidebar testid
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing

Member/User auth tests use data-testid and #row-id selectors.
Sidebar auth tests assert on data-testid=sidebar-administration.
Sidebar test expects data-testid in expanded-menu-group markup.
This commit is contained in:
Moritz 2026-02-03 17:16:15 +01:00
parent ee6bfbacbb
commit cbc9376b7b
4 changed files with 46 additions and 43 deletions

View file

@ -31,7 +31,7 @@ defmodule MvWeb.SidebarAuthorizationTest do
assert html =~ ~s(href="/members")
assert html =~ ~s(href="/membership_fee_types")
assert html =~ ~s(aria-label="Administration")
assert html =~ ~s(data-testid="sidebar-administration")
assert html =~ ~s(href="/users")
assert html =~ ~s(href="/groups")
assert html =~ ~s(href="/admin/roles")
@ -94,7 +94,7 @@ defmodule MvWeb.SidebarAuthorizationTest do
refute html =~ ~s(href="/membership_fee_types")
refute html =~ ~s(href="/users")
refute html =~ ~s(aria-label="Administration")
refute html =~ ~s(data-testid="sidebar-administration")
end
end