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 dialog specs
Jonas Jabari782038b753cb
diff --git a/app/forms/custom_fields/inputs/text.rb b/app/forms/custom_fields/inputs/text.rbindex d0645a41956..4a6ffe3ec85 100644--- a/app/forms/custom_fields/inputs/text.rb+++ b/app/forms/custom_fields/inputs/text.rb@@ -28,11 +28,12 @@class CustomFields::Inputs::Text < CustomFields::Inputs::Base::Inputform do |custom_value_form|- # TODO: rich_text_area not working yet- # Uncaught DOMException: Failed to execute 'querySelector' on 'Element': '#project_project[new_custom_field_values_attributes][xyz][value]' is not a valid selector.- # --> rich_text_area is not using the configured id, which is not scoped to model via base_config- # --> ids with '[' ']' are not valid selectors- # using simple text area for now- custom_value_form.rich_text_area(**input_attributes)+ custom_value_form.rich_text_area(**input_attributes.merge(rich_text_options:))+ end++ def rich_text_options+ {+ resource: nil+ }endenddiff --git a/spec/features/projects/project_custom_fields/overview_page/dialog/update_spec.rb b/spec/features/projects/project_custom_fields/overview_page/dialog/update_spec.rbindex 3bde936902a..85d7d638f55 100644--- a/spec/features/projects/project_custom_fields/overview_page/dialog/update_spec.rb+++ b/spec/features/projects/project_custom_fields/overview_page/dialog/update_spec.rb@@ -51,7 +51,7 @@ RSpec.describe 'Edit project custom fields on project overview page', :js dooverview_page.visit_pageoverview_page.within_custom_field_container(custom_field) do- expect(page).to have_content "Not set yet"+ expect(page).to have_content I18n.t('placeholders.default')endoverview_page.open_edit_dialog_for_section(section)@@ -108,7 +108,7 @@ RSpec.describe 'Edit project custom fields on project overview page', :js dooverview_page.visit_pageoverview_page.within_custom_field_container(custom_field) do- expect(page).to have_content "Not set yet"+ expect(page).to have_content I18n.t('placeholders.default')endoverview_page.open_edit_dialog_for_section(section)@@ -155,7 +155,7 @@ RSpec.describe 'Edit project custom fields on project overview page', :js dodialog.expect_closedoverview_page.within_custom_field_container(custom_field) do- expect(page).to have_content "Not set yet"+ expect(page).to have_content I18n.t('placeholders.default')endendend