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

Dismiss the notification before opening items

Oliver Günthere3bb5c9de44c
diff --git a/spec/support/components/grids/grid_area.rb b/spec/support/components/grids/grid_area.rb
index 29672bad784..a1fe1ce9edd 100644
--- a/spec/support/components/grids/grid_area.rb
+++ b/spec/support/components/grids/grid_area.rb
@@ -22,6 +22,9 @@ module Components
end
def click_menu_item(text)
+ # Ensure there are no active notifications
+ dismiss_notification!
+
open_menu
find('a.menu-item', text: text).click
@@ -129,6 +132,14 @@ module Components
action.perform
end
+
+ def dismiss_notification!
+ if page.has_selector?('.notification-box--close')
+ page.find('.notification-box--close').click
+ end
+
+ expect(page).to have_no_selector('.notification-box')
+ end
end
end
end