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
fixed existing project custom field settings page specs
Jonas Jabari190e6250368f
diff --git a/spec/features/projects/projects_custom_fields_spec.rb b/spec/features/projects/projects_custom_fields_spec.rbindex 856274324bd..60aba1edbcd 100644--- a/spec/features/projects/projects_custom_fields_spec.rb+++ b/spec/features/projects/projects_custom_fields_spec.rb@@ -96,7 +96,10 @@ RSpec.describe 'Projects custom fields', :js, :with_cuprite dodefault_int_field.expect_value default_int_custom_field.default_value.to_sdefault_string_field.expect_value 'Overwritten'- no_default_string_field.expect_value ''++ # The custom field without default value should not be shown+ # as it didn't got activated with a value during project creation+ expect(page).to have_no_css("[data-qa-field-name='customField#{no_default_string_custom_field.id}']")endend@@ -106,6 +109,11 @@ RSpec.describe 'Projects custom fields', :js, :with_cuprite doendlet(:editor) { Components::WysiwygEditor.new "[data-qa-field-name='customField#{custom_field.id}']" }+ before do+ # enable the custom field for the project+ project.project_custom_fields << custom_field+ end+it 'allows settings the project boolean CF (regression #26313)' dovisit project_settings_general_path(project.id)@@ -196,6 +204,11 @@ RSpec.describe 'Projects custom fields', :js, :with_cuprite docreate(:boolean_project_custom_field)end+ before do+ # enable the custom field for the project+ project.project_custom_fields << custom_field+ end+it 'allows settings the project boolean CF (regression #26313)' dovisit project_settings_general_path(project.id)field = page.find(identifier)@@ -256,6 +269,8 @@ RSpec.describe 'Projects custom fields', :js, :with_cuprite doendit 'allows inviting a new user immediately (regression #39166)' do+ project.project_custom_fields << custom_field # enable the custom field for the project+visit project_settings_general_path(project.id)cf_field.expect_visible