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

Fix visibility of `Pages::FullWorkPackageCreate#set_status`

Christophe Bliard6e025eda22d1
diff --git a/spec/support/pages/work_packages/full_work_package_create.rb b/spec/support/pages/work_packages/full_work_package_create.rb
index d1f42d1ee33..b091ea12f52 100644
--- a/spec/support/pages/work_packages/full_work_package_create.rb
+++ b/spec/support/pages/work_packages/full_work_package_create.rb
@@ -33,6 +33,16 @@ require "support/pages/work_packages/abstract_work_package_create"
module Pages
class FullWorkPackageCreate < AbstractWorkPackageCreate
+ def set_status(status)
+ # Scroll back to the top to avoid the activation of the status field
+ # displaying the dropdown overlapping it as it would prevent additional
+ # clicks on it.
+ # When scrolled on top, the dropdown is always under it.
+ scroll_to_top
+ status_field = edit_field(:status)
+ status_field.update(status)
+ end
+
private
def container
@@ -49,15 +59,5 @@ module Pages
new_project_work_packages_path(project.identifier)
end
end
-
- def set_status(status)
- # Scroll back to the top to avoid the activation of the status field
- # displaying the dropdown overlapping it as it would prevent additional
- # clicks on it.
- # When scrolled on top, the dropdown is always under it.
- scroll_to_top
- status_field = edit_field(:status)
- status_field.update(status)
- end
end
end