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

Ensure we do not create race conditions before checking the flash

Oliver Günther1a37798f834e
diff --git a/modules/meeting/spec/features/structured_meetings/structured_meeting_update_flash_spec.rb b/modules/meeting/spec/features/structured_meetings/structured_meeting_update_flash_spec.rb
index 7d7479374d5..3ded9726a03 100644
--- a/modules/meeting/spec/features/structured_meetings/structured_meeting_update_flash_spec.rb
+++ b/modules/meeting/spec/features/structured_meetings/structured_meeting_update_flash_spec.rb
@@ -112,6 +112,8 @@ RSpec.describe "Structured meetings CRUD",
end
show_page.expect_section(title: "First section")
+ show_page.visit!
+ expect(page).to have_no_text I18n.t(:notice_meeting_updated)
end
# Expect notification in window1
@@ -151,6 +153,10 @@ RSpec.describe "Structured meetings CRUD",
## Close meeting
find_test_selector("close-meeting-button").click
+ expect(page).to have_text "This meeting is closed."
+
+ show_page.visit!
+ expect(page).to have_text "This meeting is closed."
end
# Expect notification in window1