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

Wait for reload before opening the work package column settings

Dombi Attila7a62dc212f60
diff --git a/spec/features/types/form_configuration_query_spec.rb b/spec/features/types/form_configuration_query_spec.rb
index ffb752241c4..f259596ad40 100644
--- a/spec/features/types/form_configuration_query_spec.rb
+++ b/spec/features/types/form_configuration_query_spec.rb
@@ -226,6 +226,7 @@ RSpec.describe "form query configuration", :js do
expect(column_names).to eq %i[id]
form.edit_query_group("Second query")
+
modal.switch_to "Columns"
columns.expect_checked "ID"
columns.apply
diff --git a/spec/support/components/admin/type_configuration_form.rb b/spec/support/components/admin/type_configuration_form.rb
index 7c07f69ec76..0ccceec8fe6 100644
--- a/spec/support/components/admin/type_configuration_form.rb
+++ b/spec/support/components/admin/type_configuration_form.rb
@@ -166,7 +166,11 @@ module Components
end
def edit_query_group(name)
- SeleniumHubWaiter.wait unless using_cuprite?
+ if using_cuprite?
+ wait_for_reload
+ else
+ SeleniumHubWaiter.wait
+ end
group = find_group(name)
group.find(".type-form-query-group--edit-button").click