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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
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.rbindex 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 dolet(:project) docreate(: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])endlet(:creation_time) { 5.days.ago }@@ -61,7 +61,7 @@ RSpec.describe "Activity tab", :js, :with_cuprite docomment_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")endend@@ -199,15 +199,6 @@ RSpec.describe "Activity tab", :js, :with_cuprite doexpect(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)- endendcontext "with no permission" do