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 `work_packages/bulk/copy_work_package_spec` to cuprite
Aaron Contreras71dc5d543447
diff --git a/spec/features/work_packages/bulk/copy_work_package_spec.rb b/spec/features/work_packages/bulk/copy_work_package_spec.rbindex 466c5b10473..76fce7287b8 100644--- a/spec/features/work_packages/bulk/copy_work_package_spec.rb+++ b/spec/features/work_packages/bulk/copy_work_package_spec.rb@@ -2,7 +2,7 @@ require 'spec_helper'require 'features/page_objects/notification'require 'support/components/autocompleter/ng_select_autocomplete_helpers'-RSpec.describe 'Copy work packages through Rails view', js: true do+RSpec.describe 'Copy work packages through Rails view', js: true, with_cuprite: true doinclude Components::Autocompleter::NgSelectAutocompleteHelpersshared_let(:type) { create(:type, name: 'Bug') }@@ -72,6 +72,8 @@ RSpec.describe 'Copy work packages through Rails view', js: true docontext_menu.open_for work_packagecontext_menu.choose 'Bulk copy'+ wait_for_reload if using_cuprite?+expect(page).to have_selector('#new_project_id')expect_page_reload doselect_autocomplete page.find('[data-qa-selector="new_project_id"]'),@@ -130,6 +132,8 @@ RSpec.describe 'Copy work packages through Rails view', js: true doit 'moves parent and child wp to a new project with the hierarchy amended' doclick_on 'Copy and follow'+ wait_for_reload+wp_table_target.expect_current_pathwp_table_target.expect_work_package_count 3expect(page).to have_selector('#projects-menu', text: 'Target')@@ -163,6 +167,8 @@ RSpec.describe 'Copy work packages through Rails view', js: true doit 'fails, informing of the reasons' doclick_on 'Copy and follow'+ wait_for_reload+expect(page).to have_selector('.flash.error',@@ -199,6 +205,8 @@ RSpec.describe 'Copy work packages through Rails view', js: true doit 'shows the errors properly in the frontend' doclick_on 'Copy and follow'+ wait_for_reload+expect(page).to have_text 'The job has been queued and will be processed shortly.'perform_enqueued_jobs@@ -292,6 +300,8 @@ RSpec.describe 'Copy work packages through Rails view', js: true docontext_menu.open_for work_packagecontext_menu.choose 'Copy to other project'+ wait_for_network_idle+# On work packages move pageselect_autocomplete page.find('[data-qa-selector="new_project_id"]'),query: project2.name,@@ -299,7 +309,7 @@ RSpec.describe 'Copy work packages through Rails view', js: true doresults_selector: 'body'# wait for page reload after selecting the target project- sleep(2)+ wait_for_reloadselect 'nobody', from: 'Assignee'