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 `baseline_rendering_spec` to Cuprite

Aaron Contreras576ef992b15a
diff --git a/spec/features/work_packages/table/baseline/baseline_rendering_spec.rb b/spec/features/work_packages/table/baseline/baseline_rendering_spec.rb
index 28e25ed2a39..92a5395011d 100644
--- a/spec/features/work_packages/table/baseline/baseline_rendering_spec.rb
+++ b/spec/features/work_packages/table/baseline/baseline_rendering_spec.rb
@@ -29,7 +29,8 @@
require 'spec_helper'
RSpec.describe 'baseline rendering',
- js: true,
+ :js,
+ :with_cuprite,
with_settings: { date_format: '%Y-%m-%d' } do
shared_let(:list_wp_custom_field) { create(:list_wp_custom_field) }
shared_let(:multi_list_wp_custom_field) { create(:list_wp_custom_field, multi_value: true) }
@@ -351,7 +352,7 @@ RSpec.describe 'baseline rendering',
"B"
],
"customField#{multi_list_wp_custom_field.id}": [
- "A, B, ...\n7",
+ "A, B, ...7",
"A, B"
],
"customField#{user_wp_custom_field.id}": [
@@ -398,7 +399,7 @@ RSpec.describe 'baseline rendering',
end
end
- context 'when a baseline filter is set', :with_cuprite do
+ context 'when a baseline filter is set' do
before do
wp_table.visit!