FactoryBot.define do
  factory :user do
    transient do
      organisation { nil }
    end

    sequence(:uid) { |i| "user-#{i}" }
    sequence(:name) { |i| "Test User #{i}" }
    email { "user@example.com" }
    permissions { %w[signin] }
    organisation_slug { "government-digital-service" }
  end
end
