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

Fix change detection in custom text widget

Oliver Günther116e871cd528
diff --git a/modules/dashboards/spec/features/custom_text_spec.rb b/modules/dashboards/spec/features/custom_text_spec.rb
index 35afed7b9f5..1caca38ad2a 100644
--- a/modules/dashboards/spec/features/custom_text_spec.rb
+++ b/modules/dashboards/spec/features/custom_text_spec.rb
@@ -74,7 +74,7 @@ RSpec.describe 'Project description widget on dashboard', js: true do
custom_text_widget = Components::Grids::GridArea.new('.grid--area.-widgeted:nth-of-type(1)')
within custom_text_widget.area do
- find('.inplace-editing--container ').click
+ find('.inplace-editing--container').click
end
editor.insert_macro 'Insert create work package button'
@@ -101,7 +101,7 @@ RSpec.describe 'Project description widget on dashboard', js: true do
custom_text_widget = Components::Grids::GridArea.new('.grid--area.-widgeted:nth-of-type(1)')
within custom_text_widget.area do
- find('.inplace-editing--container ').click
+ find('.inplace-editing--container').click
field.set_value('My own little text')
field.save!