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
updating feature specs due to removal of custom_fields_in_projects_list
Ivan Kuchin70f7d036d358
diff --git a/spec/features/projects/projects_index_spec.rb b/spec/features/projects/projects_index_spec.rbindex 70517006349..91fbc56bf6b 100644--- a/spec/features/projects/projects_index_spec.rb+++ b/spec/features/projects/projects_index_spec.rb@@ -70,7 +70,7 @@ RSpec.describe "Projects index page", :js, :with_cuprite, with_settings: { loginendend- context "for project members", with_ee: %i[custom_fields_in_projects_list] do+ context "for project members" doshared_let(:user) docreate(:user,member_with_roles: { development_project => developer },@@ -131,7 +131,7 @@ RSpec.describe "Projects index page", :js, :with_cuprite, with_settings: { loginendend- context "for work package members", with_ee: %i[custom_fields_in_projects_list] do+ context "for work package members" doshared_let(:work_package) { create(:work_package, project: development_project) }shared_let(:user) docreate(:user,@@ -282,7 +282,7 @@ RSpec.describe "Projects index page", :js, :with_cuprite, with_settings: { loginendend- describe "project attributes visibility restrictions", with_ee: %i[custom_fields_in_projects_list] do+ describe "project attributes visibility restrictions" dolet(:user) docreate(:user,member_with_roles: {@@ -329,18 +329,7 @@ RSpec.describe "Projects index page", :js, :with_cuprite, with_settings: { loginendend- context "without valid Enterprise token" do- specify "CF columns and filters are not visible" do- load_and_open_filters admin-- # CF's columns are not present:- expect(page).to have_no_text(custom_field.name.upcase)- # CF's filters are not present:- expect(page).to have_no_select("add_filter_select", with_options: [custom_field.name])- end- end-- context "with valid Enterprise token", with_ee: %i[custom_fields_in_projects_list] do+ context "with valid Enterprise token" doshared_let(:long_text_custom_field) { create(:text_project_custom_field) }specify "CF columns and filters are not visible by default" doload_and_open_filters admin@@ -720,7 +709,7 @@ RSpec.describe "Projects index page", :js, :with_cuprite, with_settings: { loginendend- describe "other filter types", with_ee: %i[custom_fields_in_projects_list] do+ describe "other filter types" docontext "for admins" doshared_let(:list_custom_field) { create(:list_project_custom_field) }shared_let(:date_custom_field) { create(:date_project_custom_field) }@@ -1107,7 +1096,7 @@ RSpec.describe "Projects index page", :js, :with_cuprite, with_settings: { loginendend- describe "order", with_ee: %i[custom_fields_in_projects_list] do+ describe "order" doshared_let(:integer_custom_field) { create(:integer_project_custom_field) }# order is important here as the implementation uses lft# first but then reorders in ruby@@ -1303,8 +1292,7 @@ RSpec.describe "Projects index page", :js, :with_cuprite, with_settings: { loginendend- describe "column selection",- with_ee: %i[custom_fields_in_projects_list], with_settings: { enabled_projects_columns: %w[name created_at] } do+ describe "column selection", with_settings: { enabled_projects_columns: %w[name created_at] } do# Will still receive the :view_project permissionshared_let(:user) docreate(:user, member_with_permissions: { project => %i(view_project_attributes),@@ -1372,7 +1360,7 @@ RSpec.describe "Projects index page", :js, :with_cuprite, with_settings: { loginendend- context "with a multi-value custom field", with_ee: %i[custom_fields_in_projects_list] do+ context "with a multi-value custom field" dolet!(:list_custom_field) docreate(:list_project_custom_field, multi_value: true).tap do |cf|project.update(custom_field_values: { cf.id => [cf.value_of("A"), cf.value_of("B")] })