mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Explicitly create collaborative documents in tests
This commit is contained in:
@@ -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 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user