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

ulfertsc80c430801f6
diff --git a/modules/my_page/spec/features/my/work_package_table_spec.rb b/modules/my_page/spec/features/my/work_package_table_spec.rb
index 04a99ff0d32..b778ba29a90 100644
--- a/modules/my_page/spec/features/my/work_package_table_spec.rb
+++ b/modules/my_page/spec/features/my/work_package_table_spec.rb
@@ -79,6 +79,11 @@ describe 'Arbitrary WorkPackage query table widget on my page', type: :feature,
my_page.add_widget(1, 2, :column, "Work packages table")
+ # Actually there are two success messages displayed currently. One for the grid getting updated and one
+ # for the query assigned to the new widget being created. A user will not notice it but the automated
+ # browser can get confused. Therefore we wait.
+ sleep(1)
+
my_page.expect_and_dismiss_notification message: I18n.t('js.notice_successful_update')
filter_area = Components::Grids::GridArea.new('.grid--area.-widgeted:nth-of-type(3)')