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 retried specs in `work_packages/bulk/move_work_package_spec` to cuprite
Aaron Contreras40aa240c489f
diff --git a/spec/features/work_packages/bulk/move_work_package_spec.rb b/spec/features/work_packages/bulk/move_work_package_spec.rbindex 8d9c83b870f..0fe4cce5ef4 100644--- a/spec/features/work_packages/bulk/move_work_package_spec.rb+++ b/spec/features/work_packages/bulk/move_work_package_spec.rb@@ -89,18 +89,19 @@ RSpec.describe 'Moving a work package through Rails view', js: true doquery: 'Target',select_text: 'Target',results_selector: 'body'- SeleniumHubWaiter.wait+ if using_cuprite?+ wait_for_network_idle+ else+ SeleniumHubWaiter.wait+ endendcontext 'when the limit to move in the frontend is 1',with_settings: { work_packages_bulk_request_limit: 1 } do- it 'copies them in the background and shows a status page' do- # Clicking move and follow might be broken due to the location.href- # in the refresh-on-form-changes component- retry_block do- click_on 'Move and follow'- page.find('[data-qa-selector="job-status--header"]')- end+ it 'copies them in the background and shows a status page', :with_cuprite do+ click_on 'Move and follow'+ wait_for_reload+ page.find('[data-qa-selector="job-status--header"]')expect(page).to have_text 'The job has been queued and will be processed shortly.'@@ -114,14 +115,11 @@ RSpec.describe 'Moving a work package through Rails view', js: true doendend- it 'moves parent and child wp to a new project' do- # Clicking move and follow might be broken due to the location.href- # in the refresh-on-form-changes component- retry_block do- click_on 'Move and follow'- page.find('.inline-edit--container.subject', text: work_package.subject, wait: 10)- page.find_by_id('projects-menu', text: 'Target')- end+ it 'moves parent and child wp to a new project', :with_cuprite do+ click_on 'Move and follow'+ wait_for_reload+ page.find('.inline-edit--container.subject', text: work_package.subject)+ page.find_by_id('projects-menu', text: 'Target')# Should move its childrenchild_wp.reload@@ -131,14 +129,11 @@ RSpec.describe 'Moving a work package through Rails view', js: true docontext 'when the target project does not have the type' dolet!(:project2) { create(:project, name: 'Target', types: [type2]) }- it 'does moves the work package and changes the type' do- # Clicking move and follow might be broken due to the location.href- # in the refresh-on-form-changes component- retry_block do- click_on 'Move and follow'- page.find('.inline-edit--container.subject', text: work_package.subject, wait: 10)- page.find_by_id('projects-menu', text: 'Target')- end+ it 'does moves the work package and changes the type', :with_cuprite do+ click_on 'Move and follow'+ wait_for_reload+ page.find('.inline-edit--container.subject', text: work_package.subject)+ page.find_by_id('projects-menu', text: 'Target')# Should NOT have movedchild_wp.reload