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

ulferts8737f4e67dba
diff --git a/modules/dashboards/spec/features/work_package_table_spec.rb b/modules/dashboards/spec/features/work_package_table_spec.rb
index ce95700bbaf..a16cd8f578c 100644
--- a/modules/dashboards/spec/features/work_package_table_spec.rb
+++ b/modules/dashboards/spec/features/work_package_table_spec.rb
@@ -94,6 +94,12 @@ describe 'Arbitrary WorkPackage query table widget dashboard', type: :feature, j
context 'with the permission to save queries' do
it 'can add the widget and see the work packages of the filtered for types' do
+ # This one always exists by default.
+ # Using it here as a safeguard to govern speed.
+ wp_area = Components::Grids::GridArea.new('.grid--area.-widgeted:nth-of-type(1)')
+ expect(wp_area)
+ .to have_selector('.subject', text: type_work_package.subject)
+
dashboard_page.add_widget(1, 1, :row, "Work packages table")
filter_area = Components::Grids::GridArea.new('.grid--area.-widgeted:nth-of-type(2)')