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 test that used to check for comment
Klaus Zandersed46a9c6c61a
diff --git a/config/locales/en.yml b/config/locales/en.ymlindex d3734475298..7b56d1ca738 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -1484,7 +1484,7 @@ en:work_package_children_changed_times: by changes to child %{link}unaccessable_work_package_changed: by changes to a related work packageworking_days_changed:- changed: "by changes to working days (%{changes})."+ changed: "by changes to working days (%{changes})"days:working: "%{day} is now working"non_working: "%{day} is now non-working"diff --git a/spec/features/admin/working_days_spec.rb b/spec/features/admin/working_days_spec.rbindex b507dd4a3cb..4dec258fa7a 100644--- a/spec/features/admin/working_days_spec.rb+++ b/spec/features/admin/working_days_spec.rb@@ -123,7 +123,9 @@ RSpec.describe 'Working Days', js: true, with_cuprite: true dowp_page = Pages::FullWorkPackage.new(earliest_work_package)wp_page.visit!- wp_page.expect_comment(text: "Working days changed (Monday is now non-working, Friday is now non-working).")+ wp_page.expect_activity_message(+ "Dates changed by changes to working days (Monday is now non-working, Friday is now non-working)"+ )endit 'shows error when non working days are all unset' do@@ -139,7 +141,8 @@ RSpec.describe 'Working Days', js: true, with_cuprite: true dodialog.confirmend- expect(page).to have_selector('.flash.error', text: 'At least one day of the week must be defined as a working day.')+ expect(page).to have_selector('.flash.error',+ text: 'At least one day of the week must be defined as a working day.')# Restore the checkboxes to their valid stateexpect(page).to have_checked_field 'Monday'expect(page).to have_checked_field 'Tuesday'