# Working Groups are called PolicyGroup in the code as they have been partially
# renamed
take_part_pages = PolicyGroup.all
check = DataHygiene::PublishingApiSyncCheck.new(take_part_pages)

check.add_expectation("format") do |content_store_payload, _|
  content_store_payload["format"] == "working_group"
end
check.add_expectation("base_path") do |content_store_payload, record|
  content_store_payload["base_path"] == record.search_link
end
check.add_expectation("title") do |content_store_payload, record|
  content_store_payload["title"] == record.name
end

check.perform

Add a publishing-api-sync-check for Working Groups
Add a publishing-api-sync-check for Working Groups
