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

Set alert when requested

Oliver Günther224efbd0f36e
diff --git a/spec/features/work_packages/cancel_editing_spec.rb b/spec/features/work_packages/cancel_editing_spec.rb
index 7ae94862b6f..55a84035532 100644
--- a/spec/features/work_packages/cancel_editing_spec.rb
+++ b/spec/features/work_packages/cancel_editing_spec.rb
@@ -62,7 +62,11 @@ RSpec.describe "Cancel editing work package", :js do
end
def move_to_home_page(alert: true)
- accept_alert do
+ if alert
+ accept_alert do
+ find(".op-logo--link").click
+ end
+ else
find(".op-logo--link").click
end
@@ -81,7 +85,7 @@ RSpec.describe "Cancel editing work package", :js do
# move_to_home_page(alert: false)
paths.each do |path|
expect_active_edit(path)
- move_to_home_page(alert: false)
+ move_to_home_page(alert: true)
end
end