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

Wait for ajax query in the project status specs

Dombi Attila7af333c07fa8
diff --git a/modules/dashboards/spec/features/project_status_spec.rb b/modules/dashboards/spec/features/project_status_spec.rb
index 51e638adc67..c21de976426 100644
--- a/modules/dashboards/spec/features/project_status_spec.rb
+++ b/modules/dashboards/spec/features/project_status_spec.rb
@@ -118,7 +118,7 @@ RSpec.describe 'Project status widget on dashboard', :js do
field.set_to('AT RISK')
# The edit field is toggled and the value saved.
- expect(page).to have_content('AT RISK')
+ expect(page).to have_content('AT RISK', wait: 5)
expect(page).to have_selector(field.selector)
expect(page).to have_no_selector(field.input_selector)
@@ -128,7 +128,7 @@ RSpec.describe 'Project status widget on dashboard', :js do
field.set_to('NOT SET')
# The edit field is toggled and the value saved.
- expect(page).to have_content('NOT SET')
+ expect(page).to have_content('NOT SET', wait: 5)
expect(page).to have_selector(field.selector)
expect(page).to have_no_selector(field.input_selector)