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
Fix change detection on custom text
Oliver Günthere9e7ea097682
diff --git a/frontend/src/app/shared/components/grids/widgets/custom-text/custom-text.component.ts b/frontend/src/app/shared/components/grids/widgets/custom-text/custom-text.component.tsindex 5e6698859a4..b14e32f7a25 100644--- a/frontend/src/app/shared/components/grids/widgets/custom-text/custom-text.component.ts+++ b/frontend/src/app/shared/components/grids/widgets/custom-text/custom-text.component.ts@@ -83,6 +83,7 @@ export class WidgetCustomTextComponent extends AbstractWidgetComponent implement// Once that is done, we can show the edit form.this.resource.grid.updateAttachments().then(() => {this.handler.activate();+ this.cdr.detectChanges();});}diff --git a/modules/my_page/spec/features/my/custom_text_spec.rb b/modules/my_page/spec/features/my/custom_text_spec.rbindex 6aaa3cade00..b3e3b1a80c8 100644--- a/modules/my_page/spec/features/my/custom_text_spec.rb+++ b/modules/my_page/spec/features/my/custom_text_spec.rb@@ -72,8 +72,7 @@ RSpec.describe 'Custom text widget on my page', js: true dowithin custom_text_widget.area dofind('.inplace-editing--container').click- sleep 1- expect(page).to have_selector('.op-uc-container_editing')+ expect(page).to have_selector('.op-uc-container_editing', wait: 10)field.set_value('My own little text')field.save!