Skip to content

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

Stop create BCF feature spec from flickering (#9344)

Wieland Lindenthal892322a0a202
diff --git a/modules/bim/spec/features/bcf/create_spec.rb b/modules/bim/spec/features/bcf/create_spec.rb
index 4ebaf7c3d7f..4b00f765b8d 100644
--- a/modules/bim/spec/features/bcf/create_spec.rb
+++ b/modules/bim/spec/features/bcf/create_spec.rb
@@ -110,6 +110,7 @@ describe 'Create BCF',
let(:view_route) { 'split' }
before do
index_page.visit!
+ index_page.finished_loading
end
it_behaves_like 'bcf details creation', true
@@ -119,8 +120,8 @@ describe 'Create BCF',
let(:view_route) { 'list' }
before do
index_page.visit!
- # Used as a loading safeguard
- index_page.expect_wp_create_button
+ index_page.finished_loading
+
index_page.switch_view 'Cards'
expect(page).to have_current_path /\/bcf\/list$/, ignore_query: true
end
@@ -155,6 +156,8 @@ describe 'Create BCF',
it 'has the create button disabled' do
index_page.visit!
+ index_page.finished_loading
+
index_page.expect_wp_create_button_disabled
end
end
@@ -166,6 +169,7 @@ describe 'Create BCF',
let(:view_route) { 'split' }
before do
index_page.visit!
+ index_page.finished_loading
end
it_behaves_like 'bcf details creation', false