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

Fix flickering test

Christophe Bliardfc636f4e0d31
diff --git a/modules/reporting/spec/features/me_value_spec.rb b/modules/reporting/spec/features/me_value_spec.rb
index 0a061ee6a49..6355cc4c470 100644
--- a/modules/reporting/spec/features/me_value_spec.rb
+++ b/modules/reporting/spec/features/me_value_spec.rb
@@ -38,6 +38,8 @@ RSpec.describe 'Cost report showing my own times', js: true do
fill_in 'query_name', with: 'Query ME value'
check 'query_is_public'
find_by_id('query-icon-save-button').click
+ # wait until the save is complete
+ expect(page).to have_selector('h2', text: 'Query ME value')
expect(page).to have_selector('.report', text: '10.00')