Tests: data-testid selectors, scoped delete, sidebar testid
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:
parent
ee6bfbacbb
commit
cbc9376b7b
4 changed files with 46 additions and 43 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue