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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Switch `custom_fields/mulit_value_custom_field_spec` to cuprite
Aaron Contrerasec09cb45d649
diff --git a/spec/features/custom_fields/multi_value_custom_field_spec.rb b/spec/features/custom_fields/multi_value_custom_field_spec.rbindex 2d327ee0b40..3ff7a81b3c9 100644--- a/spec/features/custom_fields/multi_value_custom_field_spec.rb+++ b/spec/features/custom_fields/multi_value_custom_field_spec.rb@@ -1,7 +1,9 @@require "spec_helper"require "support/pages/work_packages/abstract_work_package"-RSpec.describe "multi select custom values", js: true do+RSpec.describe "multi select custom values",+ js: true,+ with_cuprite: true dolet(:type) { create(:type) }let(:wp_page) { Pages::FullWorkPackage.new work_package }let(:wp_table) { Pages::WorkPackagesTable.new project }@@ -127,7 +129,7 @@ RSpec.describe "multi select custom values", js: true dohierarchy.expect_no_hierarchies# Should show truncated values- expect(page).to have_text "ham, pineapple, ...\n3"+ expect(page).to have_text "ham, pineapple, ...3"expect(page).not_to have_text "onions"# Group by the CF@@ -203,7 +205,7 @@ RSpec.describe "multi select custom values", js: true doexpect(page).to have_selector('.group--value', text: 'ham, mushrooms, onions, pineapple (1)')expect(page).to have_selector('.group--value', text: 'ham (1)')- wp1_field.expect_state_text ", ...\n4"+ wp1_field.expect_state_text ", ...4"endenddiff --git a/spec/support/components/work_packages/sort_by.rb b/spec/support/components/work_packages/sort_by.rbindex 8c58e852fe8..f53c1b904ac 100644--- a/spec/support/components/work_packages/sort_by.rb+++ b/spec/support/components/work_packages/sort_by.rb@@ -36,13 +36,15 @@ module Componentsdef sort_via_header(name, selector: nil, descending: false)text = descending ? 'Sort descending' : 'Sort ascending'- SeleniumHubWaiter.wait+ SeleniumHubWaiter.wait unless using_cuprite?open_table_column_context_menu(name, selector)- SeleniumHubWaiter.wait+ SeleniumHubWaiter.wait unless using_cuprite?within_column_context_menu doclick_button textend++ wait_for_network_idle if using_cuprite?enddef update_criteria(first, second = nil, third = nil)