DEV: Fix assign spec to account for assignment created as whispers

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.
This commit is contained in:
Alan Guo Xiang Tan 2025-06-12 16:35:51 +08:00
parent 5a5d3da950
commit c226391b6b
No known key found for this signature in database
GPG Key ID: 286D2AB58F8C86B6
1 changed files with 1 additions and 0 deletions

View File

@ -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