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

attempt to fix flickering share spec

ulferts8dd72bec6626
diff --git a/spec/features/work_packages/share/share_spec.rb b/spec/features/work_packages/share/share_spec.rb
index ed13df5dbcb..edad83fc07d 100644
--- a/spec/features/work_packages/share/share_spec.rb
+++ b/spec/features/work_packages/share/share_spec.rb
@@ -390,11 +390,14 @@ RSpec.describe "Work package sharing",
before do
work_package_page.visit!
- work_package_page.click_share_button
+
+ retry_block do
+ work_package_page.click_share_button
+ share_modal.expect_open
+ end
end
it "allows inviting and directly sharing with a user who is not part of the instance yet" do
- share_modal.expect_open
share_modal.expect_shared_count_of(6)
# Invite a user that does not exist yet
@@ -435,7 +438,6 @@ RSpec.describe "Work package sharing",
end
it "shows an error message when inviting an existing locked user" do
- share_modal.expect_open
share_modal.expect_shared_count_of(6)
# Try to invite the locked user