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 `admin/custom_fields/list_custom_fields_spec` with cuprite
Aaron Contreras00f77166239d
diff --git a/spec/features/admin/custom_fields/list_custom_field_spec.rb b/spec/features/admin/custom_fields/list_custom_field_spec.rbindex 5d249e428ac..9f3fd0bc9f5 100644--- a/spec/features/admin/custom_fields/list_custom_field_spec.rb+++ b/spec/features/admin/custom_fields/list_custom_field_spec.rb@@ -28,7 +28,9 @@require 'spec_helper'-RSpec.describe 'List custom fields edit', js: true do+RSpec.describe 'List custom fields edit',+ js: true,+ with_cuprite: true doshared_let(:admin) { create(:admin) }before do@@ -40,11 +42,12 @@ RSpec.describe 'List custom fields edit', js: true do# Create CFclick_on 'Create a new custom field'- SeleniumHubWaiter.wait+ wait_for_reload+fill_in 'custom_field_name', with: 'My List CF'select 'List', from: 'custom_field_field_format'- expect(page).to have_selector('input#custom_field_custom_options_attributes_0_value')+ expect(page).to have_field('custom_field_custom_options_attributes_0_value')fill_in 'custom_field_custom_options_attributes_0_value', with: 'A'click_on 'Save'@@ -55,10 +58,9 @@ RSpec.describe 'List custom fields edit', js: true doexpect(cf.possible_values.map(&:value)).to eq %w(A)# Edit again- SeleniumHubWaiter.wait- page.find('a', text: 'My List CF').click+ find('a', text: 'My List CF').click- expect(page).to have_selector('input#custom_field_custom_options_attributes_0_value')+ expect(page).to have_field('custom_field_custom_options_attributes_0_value')fill_in 'custom_field_custom_options_attributes_0_value', with: 'B'click_on 'Save'