Explicitly create collaborative documents in tests

This commit is contained in:
Judith Roth
2026-01-30 16:37:57 +01:00
parent 27fb8ddc63
commit 47bfe4bdf4
3 changed files with 3 additions and 4 deletions
@@ -209,7 +209,7 @@ RSpec.describe "Upload attachment to documents",
end
context "for collaborative documents", with_settings: { real_time_text_collaboration_enabled: true } do
let(:document) { create(:document, project:) }
let(:document) { create(:document, :collaborative, project:) }
let(:editor) { FormFields::Primerized::BlockNoteEditorInput.new }
let(:attachments_list) { Components::AttachmentsList.new }
@@ -32,8 +32,7 @@ require "rails_helper"
RSpec.describe "BlockNote editor rendering", :js, :selenium, with_settings: { real_time_text_collaboration_enabled: true } do
let(:admin) { create(:admin) }
let(:type) { create(:document_type, :experimental) }
let(:document) { create(:document, type:) }
let(:document) { create(:document, :collaborative) }
let(:editor) { FormFields::Primerized::BlockNoteEditorInput.new }
before do
@@ -41,7 +41,7 @@ RSpec.describe "Show/Edit Document View",
let(:document_types) do
%w[Specification Report].map { create(:document_type, name: it) }
end
let(:document) { create(:document, project:, title: "Collaborative document", type: document_types.first) }
let(:document) { create(:document, :collaborative, project:, title: "Collaborative document", type: document_types.first) }
current_user { member }