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 `types/crud_spec` to cuprite

Aaron Contrerasef13ef1521c8
diff --git a/spec/features/types/crud_spec.rb b/spec/features/types/crud_spec.rb
index 023fe962da3..87cb7416843 100644
--- a/spec/features/types/crud_spec.rb
+++ b/spec/features/types/crud_spec.rb
@@ -28,7 +28,7 @@
require 'spec_helper'
-RSpec.describe 'Types', js: true do
+RSpec.describe 'Types', js: true, with_cuprite: true do
shared_let(:admin) { create(:admin) }
let!(:existing_role) { create(:role) }
diff --git a/spec/support/pages/types/index.rb b/spec/support/pages/types/index.rb
index 4d5d02d0bbb..100ddca0c29 100644
--- a/spec/support/pages/types/index.rb
+++ b/spec/support/pages/types/index.rb
@@ -64,11 +64,11 @@ module Pages
end
def delete(type)
- within_row(type) do
- find('.icon-delete').click
+ accept_alert do
+ within_row(type) do
+ find('.icon-delete').click
+ end
end
-
- accept_alert_dialog!
end
private