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
decrease polling interval and add a note why we add it
Klaus Zanders624fd2621550
diff --git a/modules/boards/spec/features/onboarding/boards_onboarding_tour_spec.rb b/modules/boards/spec/features/onboarding/boards_onboarding_tour_spec.rbindex 20109c9fe3f..307177ffc45 100644--- a/modules/boards/spec/features/onboarding/boards_onboarding_tour_spec.rb+++ b/modules/boards/spec/features/onboarding/boards_onboarding_tour_spec.rb@@ -29,7 +29,9 @@require 'spec_helper'require_relative '../support/onboarding_steps'-RSpec.describe 'boards onboarding tour', :js, with_settings: { notifications_polling_interval: 10_000 } do+# We decrease the notification polling interval because some portions of the JS code rely on something triggering+# the Angular change detection. This is usually done by the notification polling, but we don't want to wait+RSpec.describe 'boards onboarding tour', :js, with_settings: { notifications_polling_interval: 1_000 } dolet(:next_button) { find('.enjoyhint_next_btn') }let(:user) docreate(:admin,diff --git a/modules/storages/spec/features/manage_project_storage_spec.rb b/modules/storages/spec/features/manage_project_storage_spec.rbindex 389cb456347..07366706877 100644--- a/modules/storages/spec/features/manage_project_storage_spec.rb+++ b/modules/storages/spec/features/manage_project_storage_spec.rb@@ -34,9 +34,10 @@ require_module_spec_helper# Setup storages in Project -> Settings -> File Storages# This tests assumes that a Storage has already been setup# in the Admin section, tested by admin_storage_spec.rb.-RSpec.describe(- 'Activation of storages in projects', :js, :webmock-) do++# We decrease the notification polling interval because some portions of the JS code rely on something triggering+# the Angular change detection. This is usually done by the notification polling, but we don't want to wait+RSpec.describe 'Activation of storages in projects', :js, :webmock, with_settings: { notifications_polling_interval: 1_000 } dolet(:user) { create(:user) }# The first page is the Project -> Settings -> General page, so we need# to provide the user with the edit_project permission in the role.diff --git a/modules/team_planner/spec/features/onboarding/team_planner_onboarding_tour_spec.rb b/modules/team_planner/spec/features/onboarding/team_planner_onboarding_tour_spec.rbindex 14503a62df8..a74a56d7f51 100644--- a/modules/team_planner/spec/features/onboarding/team_planner_onboarding_tour_spec.rb+++ b/modules/team_planner/spec/features/onboarding/team_planner_onboarding_tour_spec.rb@@ -30,7 +30,10 @@ require 'spec_helper'require_relative '../../support/onboarding/onboarding_steps'RSpec.describe 'team planner onboarding tour', :js, with_cuprite: false, with_ee: %i[team_planner_view],- with_settings: { notifications_polling_interval: 10_000 } do+ # We decrease the notification polling interval because some portions+ # of the JS code rely on something triggering the Angular change detection.+ # This is usually done by the notification polling, but we don't want to wait+ with_settings: { notifications_polling_interval: 1_000 } dolet(:next_button) { find('.enjoyhint_next_btn') }let(:demo_project) dodiff --git a/spec/features/notifications/notification_center/notification_center_spec.rb b/spec/features/notifications/notification_center/notification_center_spec.rbindex 71c35f60c73..eb260d66cc6 100644--- a/spec/features/notifications/notification_center/notification_center_spec.rb+++ b/spec/features/notifications/notification_center/notification_center_spec.rb@@ -2,7 +2,9 @@ require 'spec_helper'RSpec.describe "Notification center", :js, :with_cuprite,with_ee: %i[date_alerts],- with_settings: { journal_aggregation_time_minutes: 0, notifications_polling_interval: 10_000 } do+ # We decrease the notification polling interval because some portions of the JS code rely on something triggering+ # the Angular change detection. This is usually done by the notification polling, but we don't want to wait+ with_settings: { journal_aggregation_time_minutes: 0, notifications_polling_interval: 1_000 } do# Notice that the setup in this file here is not following the normal rules as# it also tests notification creation.let!(:project1) { create(:project) }