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

tests[Op#55967]: choose manual selection before assertions

Kabiru Mwenjab034ea4d7008
diff --git a/modules/storages/spec/features/storages/admin/project_storages_spec.rb b/modules/storages/spec/features/storages/admin/project_storages_spec.rb
index a8ff896b44c..e7ef37415c7 100644
--- a/modules/storages/spec/features/storages/admin/project_storages_spec.rb
+++ b/modules/storages/spec/features/storages/admin/project_storages_spec.rb
@@ -31,11 +31,14 @@
require "spec_helper"
require_module_spec_helper
+# 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 "Admin lists project mappings for a storage",
:js,
:webmock,
:with_cuprite,
- with_flag: { enable_storage_for_multiple_projects: true } do
+ with_flag: { enable_storage_for_multiple_projects: true },
+ with_settings: { notifications_polling_interval: 1_000 } do
shared_let(:admin) { create(:admin, preferences: { time_zone: "Etc/UTC" }) }
shared_let(:non_admin) { create(:user) }
@@ -228,8 +231,6 @@ RSpec.describe "Admin lists project mappings for a storage",
autocompleter = page.find(".op-project-autocompleter")
autocompleter.fill_in with: project.name
- expect(page).to have_no_text(archived_project.name)
-
find(".ng-option-label", text: project.name).click
check "Include sub-projects"
@@ -297,6 +298,7 @@ RSpec.describe "Admin lists project mappings for a storage",
click_on "Add projects"
within("dialog") do
+ choose "Existing folder with manually managed permissions"
expect(page).to have_button("Nextcloud login")
click_on("Nextcloud login")
wait_for(page).to have_current_path("/index.php/apps/oauth2/authorize" \