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

attempt to fix flickering spec

ulfertsc3e55f1be910
diff --git a/modules/boards/spec/features/board_navigation_spec.rb b/modules/boards/spec/features/board_navigation_spec.rb
index 6fd0cefa35d..b636dc75dc6 100644
--- a/modules/boards/spec/features/board_navigation_spec.rb
+++ b/modules/boards/spec/features/board_navigation_spec.rb
@@ -96,7 +96,12 @@ RSpec.describe 'Work Package boards spec', :js, with_ee: %i[board_view] do
expect(page).to have_current_path /details\/#{wp.id}\/overview/
end
- it 'navigates correctly the path from overview page to the boards page' do
+ it 'navigates correctly the path from overview page to the boards page',
+ # The polling interval is only lowered as the sidemenu relies on Angular's change
+ # detection to be updated. This is a bug.
+ # In reality, it does not really matter as the user will always move the mouse or do
+ # a similar action.
+ with_settings: { notifications_polling_interval: 1_000 } do
visit project_path(project)
item = page.find('#menu-sidebar li[data-name="boards"]', wait: 10)