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

Wrap add_action in retry_block

Oliver Günther4e78eb5f39c4
diff --git a/modules/meeting/spec/support/pages/structured_meeting/show.rb b/modules/meeting/spec/support/pages/structured_meeting/show.rb
index ed23fd69072..016047bde79 100644
--- a/modules/meeting/spec/support/pages/structured_meeting/show.rb
+++ b/modules/meeting/spec/support/pages/structured_meeting/show.rb
@@ -257,11 +257,13 @@ module Pages::StructuredMeeting
end
def add_section(&)
- page.within("#meeting-agenda-items-new-button-component") do
- click_on I18n.t(:button_add)
- click_on "Section"
- # wait for the disabled button, indicating the turbo streams are applied
- expect(page).to have_css("#meeting-agenda-items-new-button-component button[disabled='disabled']")
+ retry_block do
+ page.within("#meeting-agenda-items-new-button-component") do
+ click_on I18n.t(:button_add)
+ click_on "Section"
+ # wait for the disabled button, indicating the turbo streams are applied
+ expect(page).to have_css("#meeting-agenda-items-new-button-component button[disabled='disabled']")
+ end
end
in_latest_section_form(&)