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

[#55968] Make spec more robust against flickering

Judith Roth4635f01ea9a5
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 3b3dda5ff9c..cd2a9a684e0 100644
--- a/modules/storages/spec/features/storages/admin/project_storages_spec.rb
+++ b/modules/storages/spec/features/storages/admin/project_storages_spec.rb
@@ -186,6 +186,7 @@ RSpec.describe "Admin lists project mappings for a storage",
page.within("dialog") do
expect(page).to have_button("Remove", disabled: true)
check "Please, confirm you understand and want to remove this file storage from this project"
+ expect(page).to have_button("Remove", disabled: false, wait: 3) # ensure button is clickable
click_on "Remove"
end