From 166c099b0468642355b043cfe15af54764da5a07 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Fri, 13 Jun 2025 11:36:20 +0800 Subject: [PATCH] DEV: Fix assign spec to account for assignment created as whispers (#662) When `assigns_public` is `false`, assignment posts are created as whispers. Users cannot see whispers if they are not part of the groups specified by the `whispers_allowed_groups` site setting. --- spec/system/assign_topic_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/system/assign_topic_spec.rb b/spec/system/assign_topic_spec.rb index 05cd7f0..d3c5c37 100644 --- a/spec/system/assign_topic_spec.rb +++ b/spec/system/assign_topic_spec.rb @@ -13,6 +13,7 @@ describe "Assign | Assigning topics", type: :system do SiteSetting.prioritize_full_name_in_ux = false # The system tests in this file are flaky and auth token related so turning this on SiteSetting.verbose_auth_token_logging = true + SiteSetting.whispers_allowed_groups = [Group[:staff].id] sign_in(admin) end