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

Scroll to save button to avoid attachment spec error

Oliver Güntherd44389bbdcfa
diff --git a/spec/features/work_packages/attachments/attachment_upload_spec.rb b/spec/features/work_packages/attachments/attachment_upload_spec.rb
index e23e51599ad..f7dc0be6106 100644
--- a/spec/features/work_packages/attachments/attachment_upload_spec.rb
+++ b/spec/features/work_packages/attachments/attachment_upload_spec.rb
@@ -114,7 +114,7 @@ describe 'Upload attachment to work package', js: true do
sleep 2
- click_on 'Save'
+ scroll_to_and_click find('#work-packages--edit-actions-save')
wp_page.expect_notification(
message: 'Successful creation.'