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 `work_packages/table/context_menu/context_menu_spec` to cuprite

Aaron Contrerasde829fcbd86a
diff --git a/spec/features/work_packages/table/context_menu/context_menu_shared_examples.rb b/spec/features/work_packages/table/context_menu/context_menu_shared_examples.rb
index ad9b940d2f7..7ed62145b67 100644
--- a/spec/features/work_packages/table/context_menu/context_menu_shared_examples.rb
+++ b/spec/features/work_packages/table/context_menu/context_menu_shared_examples.rb
@@ -6,7 +6,7 @@ RSpec.shared_examples_for 'provides a single WP context menu' do
let(:time_logging_modal) { Components::TimeLoggingModal.new }
let(:wp_timeline) { Pages::WorkPackagesTimeline.new(work_package.project) }
- it 'provide a context menu' do
+ it 'provides a context menu' do
# Open detail pane
open_context_menu.call
menu.choose('Open details view')
diff --git a/spec/features/work_packages/table/context_menu/context_menu_spec.rb b/spec/features/work_packages/table/context_menu/context_menu_spec.rb
index 9b61695769d..5cf1fdb0d4f 100644
--- a/spec/features/work_packages/table/context_menu/context_menu_spec.rb
+++ b/spec/features/work_packages/table/context_menu/context_menu_spec.rb
@@ -1,14 +1,14 @@
require 'spec_helper'
require_relative 'context_menu_shared_examples'
-RSpec.describe 'Work package table context menu', js: true do
- let(:user) { create(:admin) }
- let(:work_package) { create(:work_package) }
+RSpec.describe 'Work package table context menu', js: true, with_cuprite: true do
+ shared_let(:user) { create(:admin) }
+ shared_let(:work_package) { create(:work_package) }
- let(:wp_table) { Pages::WorkPackagesTable.new(work_package.project) }
+ shared_let(:wp_table) { Pages::WorkPackagesTable.new(work_package.project) }
+ shared_let(:menu) { Components::WorkPackages::ContextMenu.new }
+ shared_let(:display_representation) { Components::WorkPackages::DisplayRepresentation.new }
let(:wp_timeline) { Pages::WorkPackagesTimeline.new(work_package.project) }
- let(:menu) { Components::WorkPackages::ContextMenu.new }
- let(:display_representation) { Components::WorkPackages::DisplayRepresentation.new }
before do
login_as(user)