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

Switch `groups/groups_spec` to cuprite

Aaron Contrerasd80a9ca59310
diff --git a/spec/features/groups/groups_spec.rb b/spec/features/groups/groups_spec.rb
index 8bb56f194de..931637f856e 100644
--- a/spec/features/groups/groups_spec.rb
+++ b/spec/features/groups/groups_spec.rb
@@ -28,7 +28,9 @@
require 'spec_helper'
-RSpec.describe 'group memberships through groups page', js: true do
+RSpec.describe 'group memberships through groups page',
+ js: true,
+ with_cuprite: true do
shared_let(:admin) { create(:admin) }
let!(:group) { create(:group, lastname: "Bob's Team") }
diff --git a/spec/support/pages/groups.rb b/spec/support/pages/groups.rb
index 2edd3295bf4..f86a72a9471 100644
--- a/spec/support/pages/groups.rb
+++ b/spec/support/pages/groups.rb
@@ -51,8 +51,9 @@ module Pages
end
def delete_group!(name)
- find_group(name).find('a[data-method=delete]').click
- accept_alert_dialog!
+ accept_alert do
+ find_group(name).find('a[data-method=delete]').click
+ end
end
def find_group(name)