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

attempt to stabilize flickering spec

ulferts1553c93247bf
diff --git a/spec/features/menu_items/query_menu_item_spec.rb b/spec/features/menu_items/query_menu_item_spec.rb
index 0870f1d7c89..771e1184498 100644
--- a/spec/features/menu_items/query_menu_item_spec.rb
+++ b/spec/features/menu_items/query_menu_item_spec.rb
@@ -89,12 +89,14 @@ RSpec.describe "Query menu items", :js do
it "can be added" do
visit_index_page(query)
- click_on "More actions"
- click_on I18n.t("js.toolbar.settings.visibility_settings")
+ wp_table.expect_no_work_package_listed
+ wp_table.click_setting_item I18n.t("js.toolbar.settings.visibility_settings")
+
check "Favored"
click_on "Save"
notification.expect_success("Successful update")
+ wait_for_network_idle
expect(page).to have_css(".op-submenu--item", text: query.name)
end
end