From c8b15afa2db6f9f0ccee83f4dd730ea4d67f6132 Mon Sep 17 00:00:00 2001 From: Ted Johansson Date: Wed, 31 Jan 2024 10:40:33 +0800 Subject: [PATCH] DEV: Refresh auto groups in tests to make them pass (#45) We changed our access settings to be based on group membership rather than TL column. This requires some tests to refresh the group memberships to have the tests keep passing. --- spec/system/kanban_functionality_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/system/kanban_functionality_spec.rb b/spec/system/kanban_functionality_spec.rb index e9a78fe..8b071a7 100644 --- a/spec/system/kanban_functionality_spec.rb +++ b/spec/system/kanban_functionality_spec.rb @@ -18,11 +18,11 @@ def tagged_topic(*tags) fab!(:modern_js_backlog) { tagged_topic(modern_js, backlog) } fab!(:chat_backlog) { tagged_topic(chat, backlog) } - fab!(:user) { Fabricate(:admin) } + fab!(:user) { Fabricate(:admin, refresh_auto_groups: true) } let!(:theme) { upload_theme_component } - before { sign_in user } + before { sign_in user } it "should function without tag / category filters" do visit "/"