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
Better waiting for the correct action to take place
Oliver Günther5e7443205167
diff --git a/spec/features/work_packages/bulk/move_work_package_spec.rb b/spec/features/work_packages/bulk/move_work_package_spec.rbindex 509fd5cebea..0f83acef5a1 100644--- a/spec/features/work_packages/bulk/move_work_package_spec.rb+++ b/spec/features/work_packages/bulk/move_work_package_spec.rb@@ -89,14 +89,17 @@ describe 'Moving a work package through Rails view', js: true doselect_text: 'Target',results_selector: 'body'SeleniumHubWaiter.wait- click_on 'Move and follow'++ # 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('#projects-menu', text: 'Target')+ endendit 'moves parent and child wp to a new project' do- expect_angular_frontend_initialized- expect(page).to have_selector('.inline-edit--container.subject', text: work_package.subject, wait: 10)- expect(page).to have_selector('#projects-menu', text: 'Target')-# Should move its childrenchild_wp.reloadexpect(child_wp.project_id).to eq(project2.id)@@ -106,10 +109,6 @@ describe 'Moving a work package through Rails view', js: true dolet!(:project2) { create(:project, name: 'Target', types: [type2]) }it 'does moves the work package and changes the type' do- expect_angular_frontend_initialized- expect(page).to have_selector('.inline-edit--container.subject', text: work_package.subject, wait: 10)- expect(page).to have_selector('#projects-menu', text: 'Target')-# Should NOT have movedchild_wp.reloadwork_package.reload