if User.where(name: "Test user").present?
  puts "Skipping because user already exists"
else
  gds_organisation_id = "af07d5a5-df63-4ddc-9383-6a666845ebe9"
  User.create!(
    name: "Test user",
    permissions: ["signin", "GDS Admin"],
    organisation_content_id: gds_organisation_id,
  )
end

if Organisation.where(name: "HMRC").present?
  puts "Skipping because HMRC organisation already exists"
else
  Organisation.create!(
    name: "HMRC",
    slug: "hm-revenue-customs",
    acronym: "HRMC",
    organisation_type_key: :other,
    logo_formatted_name: "Test",
    content_id: "6667cce2-e809-4e21-ae09-cb0bdc1ddda3"
  )
end

if Organisation.where(name: "Test Organisation").present?
  puts "Skipping because Test Organisation already exists"
else
  Organisation.create!(
    name: "Test Organisation",
    slug: "test-organisation",
    acronym: "TO",
    organisation_type_key: :other,
    logo_formatted_name: "Test"
  )
end

if User.where(name: "Test user").present?
  puts "Skipping because user already exists"
else
  gds_organisation_id = "af07d5a5-df63-4ddc-9383-6a666845ebe9"
  User.create!(
    name: "Test user",
    permissions: ["signin", "GDS Admin", "GDS Editor"],
    organisation_content_id: gds_organisation_id,
    organisation_slug: "test-organisation"
  )
end

if Organisation.where(name: "HMRC").present?
  puts "Skipping because HMRC organisation already exists"
else
  Organisation.create!(
    name: "HMRC",
    slug: "hm-revenue-customs",
    acronym: "HRMC",
    organisation_type_key: :other,
    logo_formatted_name: "Test",
    content_id: "6667cce2-e809-4e21-ae09-cb0bdc1ddda3"
  )
end

if Organisation.where(name: "Test Organisation").present?
  puts "Skipping because Test Organisation already exists"
else
  Organisation.create!(
    name: "Test Organisation",
    slug: "test-organisation",
    acronym: "TO",
    organisation_type_key: :other,
    logo_formatted_name: "Test"
  )
end

Add more permissions to the seed user
Add more permissions to the seed user

As part of writing E2E tests for Whitehall we want the user to have
access to all permissions options, and to have an organisation to
edit.
