identity-vault/spec/factories/backend_users.rb
nora 9998147a4e
epic: overhaul program management experience (#188)
* temp commit

* lemme do it

* nope

* let them do it too

* collab invite model

* better visuals on progman

* waow

* danger will robinson

* show apps on backend & link user

* first pass on app auditability!

* no lastnaming admins

* async frame that shit!

* waugh

* can't add yourself

* fix reinvite

* sidebar badging

* lint...

* gotta be on the app!

* let that get rescued by applcon

* already in revoke_all_authorizations

* woag

* the routes you grew up with no longer exist

* what would the UI for that even be?

* sorch

* much better!

* frickin validations
2026-03-02 22:15:13 -05:00

25 lines
557 B
Ruby

FactoryBot.define do
factory :backend_user, class: "Backend::User" do
sequence(:username) { |n| "admin#{n}" }
active { true }
super_admin { false }
program_manager { false }
manual_document_verifier { false }
human_endorser { false }
all_fields_access { false }
can_break_glass { false }
association :identity
trait :super_admin do
super_admin { true }
end
trait :program_manager do
program_manager { true }
end
trait :mdv do
manual_document_verifier { true }
end
end
end