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
Fix flaky test
Christophe Bliard5af3fad33c58
diff --git a/modules/bim/spec/features/bcf/create_spec.rb b/modules/bim/spec/features/bcf/create_spec.rbindex cc04a0fccd3..5ade3b6bd11 100644--- a/modules/bim/spec/features/bcf/create_spec.rb+++ b/modules/bim/spec/features/bcf/create_spec.rb@@ -1,7 +1,6 @@require_relative '../../spec_helper'-RSpec.describe 'Create BCF',- js: true,+RSpec.describe 'Create BCF', :js,with_config: { edition: 'bim' } dolet(:project) docreate(:project,@@ -32,7 +31,7 @@ RSpec.describe 'Create BCF',create(:integer_wp_custom_field)end- shared_examples 'bcf details creation' do |with_viewpoints|+ shared_examples 'bcf details creation' do |with_viewpoints:|it "can create a new #{with_viewpoints ? 'bcf' : 'plain'} work package" docreate_page = index_page.create_wp_by_button(type)@@ -105,7 +104,7 @@ RSpec.describe 'Create BCF',index_page.visit_and_wait_until_finished_loading!end- it_behaves_like 'bcf details creation', true+ it_behaves_like 'bcf details creation', with_viewpoints: trueendcontext 'when going to split table view first' do@@ -115,7 +114,7 @@ RSpec.describe 'Create BCF',index_page.switch_view 'Viewer and table'end- it_behaves_like 'bcf details creation', true+ it_behaves_like 'bcf details creation', with_viewpoints: trueendcontext 'when going to cards view first' do@@ -125,7 +124,7 @@ RSpec.describe 'Create BCF',index_page.switch_view 'Cards'end- it_behaves_like 'bcf details creation', false+ it_behaves_like 'bcf details creation', with_viewpoints: falseendcontext 'when going to table view first' do@@ -135,7 +134,7 @@ RSpec.describe 'Create BCF',index_page.switch_view 'Table'end- it_behaves_like 'bcf details creation', false+ it_behaves_like 'bcf details creation', with_viewpoints: falseendcontext 'when starting on the details page of an existing work package' do@@ -143,10 +142,11 @@ RSpec.describe 'Create BCF',before dovisit bcf_project_frontend_path(project, "details/#{work_package.id}")+ index_page.finished_loadingindex_page.expect_details_pathend- it_behaves_like 'bcf details creation', true+ it_behaves_like 'bcf details creation', with_viewpoints: trueendend@@ -168,7 +168,7 @@ RSpec.describe 'Create BCF',index_page.visit_and_wait_until_finished_loading!end- it_behaves_like 'bcf details creation', false+ it_behaves_like 'bcf details creation', with_viewpoints: falseendendend