Fix tests: Add missing actor parameters to Ash operations
This commit is contained in:
parent
b9d68a3417
commit
d8187484b8
5 changed files with 9 additions and 5 deletions
|
|
@ -79,7 +79,7 @@ defmodule MvWeb.RoleLive.ShowTest do
|
|||
|> Ash.update(actor: actor)
|
||||
|
||||
# Load role for authorization checks (must be loaded for can?/3 to work)
|
||||
user_with_role = Ash.load!(user, :role, domain: Mv.Accounts)
|
||||
user_with_role = Ash.load!(user, :role, domain: Mv.Accounts, actor: actor)
|
||||
|
||||
# Store user with role in session for LiveView
|
||||
conn = conn_with_password_user(conn, user_with_role)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue