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
Add settings for the notification polling interval for tests that rely on it
Klaus Zanders7ab49f942020
diff --git a/modules/boards/spec/features/onboarding/boards_onboarding_tour_spec.rb b/modules/boards/spec/features/onboarding/boards_onboarding_tour_spec.rbindex 3d1784085b0..20109c9fe3f 100644--- a/modules/boards/spec/features/onboarding/boards_onboarding_tour_spec.rb+++ b/modules/boards/spec/features/onboarding/boards_onboarding_tour_spec.rb@@ -27,10 +27,9 @@#++require 'spec_helper'-require_relative './../support/onboarding_steps'+require_relative '../support/onboarding_steps'-RSpec.describe 'boards onboarding tour',- js: true do+RSpec.describe 'boards onboarding tour', :js, with_settings: { notifications_polling_interval: 10_000 } dolet(:next_button) { find('.enjoyhint_next_btn') }let(:user) docreate(:admin,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 17279621817..14503a62df8 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@@ -29,9 +29,8 @@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] do+RSpec.describe 'team planner onboarding tour', :js, with_cuprite: false, with_ee: %i[team_planner_view],+ with_settings: { notifications_polling_interval: 10_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 62ef6289aea..71c35f60c73 100644--- a/spec/features/notifications/notification_center/notification_center_spec.rb+++ b/spec/features/notifications/notification_center/notification_center_spec.rb@@ -2,7 +2,7 @@ require 'spec_helper'RSpec.describe "Notification center", :js, :with_cuprite,with_ee: %i[date_alerts],- with_settings: { journal_aggregation_time_minutes: 0 } do+ with_settings: { journal_aggregation_time_minutes: 0, notifications_polling_interval: 10_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) }