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

Wait for "Share" button to be rendered

Aaron Contrerasa08a9c7c21ee
diff --git a/spec/features/work_packages/share/share_account_activation_spec.rb b/spec/features/work_packages/share/share_account_activation_spec.rb
index 07469814218..bc714c60dfd 100644
--- a/spec/features/work_packages/share/share_account_activation_spec.rb
+++ b/spec/features/work_packages/share/share_account_activation_spec.rb
@@ -31,7 +31,7 @@
require 'spec_helper'
RSpec.describe 'Work package sharing invited users',
- :js,
+ :js, :with_cuprite,
with_ee: %i[work_package_sharing],
with_flag: { work_package_sharing: true } do
shared_let(:view_work_package_role) { create(:view_work_package_role) }
@@ -60,8 +60,9 @@ RSpec.describe 'Work package sharing invited users',
expect(page).to have_current_path '/my/page'
work_package_page.visit!
- click_button 'Share'
+ work_package_page.click_share_button
+ share_modal.expect_open
# Invite a user that does not exist yet
share_modal.invite_user('[email protected]', 'View')
# New user is shown in the list of shares