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

Remove parent warning check from spec as it is not displayed any more

Henriette Darge00c540cf7d75
diff --git a/spec/features/work_packages/scheduling/scheduling_mode_spec.rb b/spec/features/work_packages/scheduling/scheduling_mode_spec.rb
index 032462dd5dc..88d01d60c90 100644
--- a/spec/features/work_packages/scheduling/scheduling_mode_spec.rb
+++ b/spec/features/work_packages/scheduling/scheduling_mode_spec.rb
@@ -98,7 +98,6 @@ describe 'scheduling mode',
combined_field.activate!(expect_open: false)
combined_field.expect_active!
combined_field.expect_scheduling_mode manually: false
- combined_field.expect_parent_notification
combined_field.toggle_scheduling_mode
combined_field.update(%w[2016-01-05 2016-01-10])
@@ -132,7 +131,6 @@ describe 'scheduling mode',
combined_field.expect_active!
combined_field.expect_scheduling_mode manually: true
combined_field.toggle_scheduling_mode
- combined_field.expect_parent_notification
combined_field.save!
work_packages_page.expect_and_dismiss_toaster message: 'Successful update.'
@@ -162,7 +160,6 @@ describe 'scheduling mode',
combined_field.activate!(expect_open: false)
combined_field.expect_active!
combined_field.expect_scheduling_mode manually: false
- combined_field.expect_parent_notification
combined_field.toggle_scheduling_mode
# Increasing the duration while at it
combined_field.update(%w[2015-12-20 2015-12-31])
@@ -194,7 +191,6 @@ describe 'scheduling mode',
combined_field.expect_active!
combined_field.expect_scheduling_mode manually: true
combined_field.toggle_scheduling_mode
- combined_field.expect_parent_notification
combined_field.save!
work_packages_page.expect_and_dismiss_toaster message: 'Successful update.'
diff --git a/spec/support/edit_fields/date_edit_field.rb b/spec/support/edit_fields/date_edit_field.rb
index 5b4f449009e..9c4f8ccbbf3 100644
--- a/spec/support/edit_fields/date_edit_field.rb
+++ b/spec/support/edit_fields/date_edit_field.rb
@@ -44,12 +44,6 @@ class DateEditField < EditField
end
end
- def expect_parent_notification
- within_modal do
- expect(page).to have_content(I18n.t('js.work_packages.scheduling.is_parent'))
- end
- end
-
def toggle_scheduling_mode
within_modal do
find('[data-qa-selector="op-datepicker-modal--scheduling-action"]').click