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

Fix flaky spec

Christophe Bliard51d5283a2edf
diff --git a/modules/meeting/spec/support/pages/meetings/show.rb b/modules/meeting/spec/support/pages/meetings/show.rb
index 22d436bd79e..98cf7d38b07 100644
--- a/modules/meeting/spec/support/pages/meetings/show.rb
+++ b/modules/meeting/spec/support/pages/meetings/show.rb
@@ -226,9 +226,8 @@ module Pages::Meetings
page.find_test_selector("op-meeting-agenda-actions").click
end
page.find(".Overlay")
+ page.within(".Overlay", &)
end
-
- page.within(".Overlay", &)
end
def select_outcome_action(action)
@@ -367,10 +366,9 @@ module Pages::Meetings
retry_block do
click_on_backlog_menu
page.find(".Overlay")
- end
-
- page.within(".Overlay") do
- click_on action
+ page.within(".Overlay") do
+ click_on action
+ end
end
end