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 stabilize spec

ulferts3569d700c624
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 86eb004c8c4..e7e9c1f7918 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
@@ -75,7 +75,11 @@ describe 'Arbitrary WorkPackage query table widget on my page', type: :feature,
context 'with the permission to save queries' do
it 'can add the widget and see the work packages of the filtered for types' do
- sleep(0.5)
+ # This one always exists by default.
+ # Using it here as a safeguard to govern speed.
+ created_by_me_area = Components::Grids::GridArea.new('.grid--area.-widgeted:nth-of-type(2)')
+ expect(created_by_me_area.area)
+ .to have_selector('.subject', text: type_work_package.subject)
my_page.add_widget(1, 2, :column, "Work packages table")