Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

remove obsolete feature test for checkboxes in text custom field activity

Ivan Kuchin7769ee3e9f9a
diff --git a/spec/features/work_packages/tabs/activity_tab_spec.rb b/spec/features/work_packages/tabs/activity_tab_spec.rb
index 71a7144745d..4117cc47735 100644
--- a/spec/features/work_packages/tabs/activity_tab_spec.rb
+++ b/spec/features/work_packages/tabs/activity_tab_spec.rb
@@ -35,14 +35,14 @@ RSpec.describe "Activity tab", :js, :with_cuprite do
let(:project) do
create(:project_with_types,
types: [type_with_cf],
- work_package_custom_fields: [string_cf],
+ work_package_custom_fields: [custom_field],
public: true)
end
- let(:string_cf) { create(:text_wp_custom_field) }
+ let(:custom_field) { create(:text_wp_custom_field) }
let(:type_with_cf) do
- create(:type, custom_fields: [string_cf])
+ create(:type, custom_fields: [custom_field])
end
let(:creation_time) { 5.days.ago }
@@ -61,7 +61,7 @@ RSpec.describe "Activity tab", :js, :with_cuprite do
comment_time => { notes: "A comment by a different user", user: create(:admin) }
}).tap do |wp|
Journal::CustomizableJournal.create!(journal: wp.journals[1],
- custom_field_id: string_cf.id,
+ custom_field_id: custom_field.id,
value: "* [x] Task 1\n* [ ] Task 2")
end
end
@@ -199,15 +199,6 @@ RSpec.describe "Activity tab", :js, :with_cuprite do
expect(page).to have_css(".user-comment > .message", count: 3)
expect(page).to have_css(".user-comment > .message blockquote")
end
-
- it "can render checkboxes as part of the activity" do
- task_list = page.all('[data-qa-activity-number="2"] ul.op-uc-list_task-list li.op-uc-list--item')
- expect(task_list.size).to eq(2)
- expect(task_list[0]).to have_text("Task 1")
- expect(task_list[0]).to have_checked_field(disabled: true)
- expect(task_list[1]).to have_text("Task 2")
- expect(task_list[1]).to have_unchecked_field(disabled: true)
- end
end
context "with no permission" do