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 flickering test

Christophe Bliard3ce23eca748f
diff --git a/spec/features/work_packages/bulk/copy_work_package_spec.rb b/spec/features/work_packages/bulk/copy_work_package_spec.rb
index 14b7c42276c..2f5ac7dd083 100644
--- a/spec/features/work_packages/bulk/copy_work_package_spec.rb
+++ b/spec/features/work_packages/bulk/copy_work_package_spec.rb
@@ -237,6 +237,9 @@ describe 'Copy work packages through Rails view', js: true do
select_text: project2.name,
results_selector: 'body'
+ # wait for page reload after selecting the target project
+ sleep(2)
+
select 'nobody', from: 'Assignee'
click_on 'Copy and follow'