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 fix flickering spec

ulfertsf29c3a9c91c5
diff --git a/spec/features/projects/export_spec.rb b/spec/features/projects/export_spec.rb
index a4fcc87691d..8ac22a8ba06 100644
--- a/spec/features/projects/export_spec.rb
+++ b/spec/features/projects/export_spec.rb
@@ -98,7 +98,7 @@ RSpec.describe "project export", :js, :with_cuprite do
"contains",
["Important"])
- click_on "Apply"
+ index_page.apply_filters
index_page.set_columns("Name", "Description")
diff --git a/spec/support/pages/projects/index.rb b/spec/support/pages/projects/index.rb
index 2d5fab6566f..967eaff1ba9 100644
--- a/spec/support/pages/projects/index.rb
+++ b/spec/support/pages/projects/index.rb
@@ -162,22 +162,22 @@ module Pages
def filter_by_active(value)
set_filter("active", "Active", "is", [value])
- click_on "Apply"
+ apply_filters
end
def filter_by_public(value)
set_filter("public", "Public", "is", [value])
- click_on "Apply"
+ apply_filters
end
def filter_by_favored(value)
set_filter("favored", "Favorite", "is", [value])
- click_on "Apply"
+ apply_filters
end
def filter_by_membership(value)
set_filter("member_of", "I am member", "is", [value])
- click_on "Apply"
+ apply_filters
end
def set_filter(name, human_name, human_operator = nil, values = [])