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

Change expect for copy clipboard spec

Oliver Günther5e670340538d
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 0c595b4f967..31dac0984e8 100644
--- a/spec/features/work_packages/bulk/copy_work_package_spec.rb
+++ b/spec/features/work_packages/bulk/copy_work_package_spec.rb
@@ -267,7 +267,7 @@ RSpec.describe "Copy work packages through Rails view", :js, :with_cuprite do
# We cannot access the navigator.clipboard from a headless browser.
# This test makes sure the copy to clipboard logic is working,
# regardless of the browser permissions.
- expect(page).to have_content("/wp/#{work_package.id}")
+ expect(page).to have_text("Successfully copied to clipboard!")
end
end