diff --git a/spec/system/assign_topic_spec.rb b/spec/system/assign_topic_spec.rb index 916ab409..873ea5c9 100644 --- a/spec/system/assign_topic_spec.rb +++ b/spec/system/assign_topic_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe "Assign | Assigning topics", type: :system, js: true do +describe "Assign | Assigning topics", type: :system, capture_log: true do let(:topic_page) { PageObjects::Pages::Topic.new } let(:assign_modal) { PageObjects::Modals::Assign.new } fab!(:staff_user) { Fabricate(:user, groups: [Group[:staff]]) } @@ -10,6 +10,10 @@ before do SiteSetting.assign_enabled = true + + # The system tests in this file are flaky and auth token related so turning this on + SiteSetting.verbose_auth_token_logging = true + sign_in(admin) end @@ -34,7 +38,7 @@ context "when assigns are not public" do before { SiteSetting.assigns_public = false } - it "assigned small action post has 'private-assign' in class attribute", capture_log: true do + it "assigned small action post has 'private-assign' in class attribute" do visit "/t/#{topic.id}" topic_page.click_assign_topic @@ -73,7 +77,7 @@ expect(page).to have_no_css("#topic .assigned-to") end - it "can assign the previous assignee", capture_log: true do + it "can assign the previous assignee" do visit "/t/#{topic.id}" topic_page.click_assign_topic @@ -103,7 +107,7 @@ context "when reassign_on_open is set to true" do before { SiteSetting.reassign_on_open = true } - it "reassigns the topic on open", capture_log: true do + it "reassigns the topic on open" do visit "/t/#{topic.id}" topic_page.click_assign_topic