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 potentially outdated node references in spec
ulferts6423ca64d6b3
diff --git a/spec/features/work_packages/table/switch_types_spec.rb b/spec/features/work_packages/table/switch_types_spec.rbindex fdc7c1b3379..ea9f52d120d 100644--- a/spec/features/work_packages/table/switch_types_spec.rb+++ b/spec/features/work_packages/table/switch_types_spec.rb@@ -48,9 +48,18 @@ describe 'Switching types in work package table', js: true doqueryend- let(:type_field) { wp_table.edit_field(work_package, :type) }- let(:text_field) { wp_table.edit_field(work_package, cf_text.attribute_name(:camel_case)) }- let(:req_text_field) { wp_table.edit_field(work_package, cf_req_text.attribute_name(:camel_case)) }+ # Using let to memoize the fields sometimes leads to invalid node reference errors in chrome 113.+ def type_field+ wp_table.edit_field(work_package, :type)+ end++ def text_field+ wp_table.edit_field(work_package, cf_text.attribute_name(:camel_case))+ end++ def req_text_field+ wp_table.edit_field(work_package, cf_req_text.attribute_name(:camel_case))+ endbefore dologin_as(user)