Fix tests: Add missing actor parameters to Ash operations

This commit is contained in:
Moritz 2026-01-24 01:42:20 +01:00
parent f1626a3beb
commit 5b22f5cdaa
Signed by: moritz
GPG key ID: 1020A035E5DD0824
5 changed files with 9 additions and 5 deletions

View file

@ -70,7 +70,7 @@ defmodule MvWeb.RoleLiveTest 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)