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
execute all delayed jobs in spec -> failing
ulferts2ccb00430d41
diff --git a/spec/features/projects/copy_spec.rb b/spec/features/projects/copy_spec.rbindex 753748cc6b0..77e0515fd2f 100644--- a/spec/features/projects/copy_spec.rb+++ b/spec/features/projects/copy_spec.rb@@ -28,28 +28,23 @@require 'spec_helper'+# rubocop:disable RSpec:MultipleMemoizedHelpersdescribe 'Projects copy',type: :feature,js: true dodescribe 'with a full copy example' dolet!(:project) do- project = FactoryBot.create(:project,- parent: parent_project,- types: active_types,- custom_field_values: { project_custom_field.id => 'some text cf' })-- FactoryBot.create(:member,- project: project,- user: user,- roles: [role])-- project.work_package_custom_fields << wp_custom_field- project.types.first.custom_fields << wp_custom_field-- # Enable wiki- project.enabled_module_names += ['wiki']-- project+ FactoryBot.create(:project,+ parent: parent_project,+ types: active_types,+ members: { user => role },+ custom_field_values: { project_custom_field.id => 'some text cf' }).tap do |p|+ p.work_package_custom_fields << wp_custom_field+ p.types.first.custom_fields << wp_custom_field++ # Enable wiki+ p.enabled_module_names += ['wiki']+ endendlet!(:parent_project) do@@ -151,13 +146,17 @@ describe 'Projects copy',expect(page).to have_text 'The job has been queued and will be processed shortly.'- perform_enqueued_jobs+ # ensure all jobs are run especially emails which might be sent later on+ while perform_enqueued_jobs > 0 do endcopied_project = Project.find_by(name: 'Copied project')expect(copied_project).to be_present+ # Will redirect to the new project automatically once the copy process is done+ expect(page).to have_current_path("#{project_path(copied_project)}/")+copied_settings_page = Pages::Projects::Settings.new(copied_project)copied_settings_page.visit!@@ -300,3 +299,4 @@ describe 'Projects copy',endendend+# rubocop:enable RSpec:MultipleMemoizedHelpers