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

combine duplication in project custom fields mapping feature spec

Ivan Kuchind106d1ca22fb
diff --git a/spec/features/projects/project_custom_fields/settings/mapping_spec.rb b/spec/features/projects/project_custom_fields/settings/mapping_spec.rb
index 50bbd09f72a..fd64f6acc1f 100644
--- a/spec/features/projects/project_custom_fields/settings/mapping_spec.rb
+++ b/spec/features/projects/project_custom_fields/settings/mapping_spec.rb
@@ -194,34 +194,7 @@ RSpec.describe "Projects custom fields mapping via project settings", :js do
end
end
- it "enables all mapping states of a section for a specific project when bulk action button clicked" do
- visit project_settings_project_custom_fields_path(project)
-
- within_custom_field_section_container(section_for_input_fields) do
- page.find("[data-test-selector='enable-all-project-custom-field-mappings-#{section_for_input_fields.id}']").click
-
- within_custom_field_container(boolean_project_custom_field) do
- expect_checked_state
- end
- within_custom_field_container(string_project_custom_field) do
- expect_checked_state
- end
- end
-
- within_custom_field_section_container(section_for_select_fields) do
- within_custom_field_container(list_project_custom_field) do
- expect_unchecked_state
- end
- end
-
- within_custom_field_section_container(section_for_multi_select_fields) do
- within_custom_field_container(multi_list_project_custom_field) do
- expect_unchecked_state
- end
- end
- end
-
- it "disables all mapping states of a section for a specific project when bulk action button clicked" do
+ it "enables and disables all mapping states of a section for a specific project when bulk action button clicked" do
visit project_settings_project_custom_fields_path(project)
within_custom_field_section_container(section_for_input_fields) do