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

ulfertsed75447bf3e8
diff --git a/modules/my_page/spec/features/my/accountable_spec.rb b/modules/my_page/spec/features/my/accountable_spec.rb
index 58a9c4b735b..a0003bdc92d 100644
--- a/modules/my_page/spec/features/my/accountable_spec.rb
+++ b/modules/my_page/spec/features/my/accountable_spec.rb
@@ -79,6 +79,12 @@ describe 'Accountable widget on my page', type: :feature, js: true do
end
it 'can add the widget and see the work packages the user is accountable for' do
+ # Added to ensure the page has finished loading.
+ # The page starts with a "wp created widget".
+ created_area = Components::Grids::GridArea.new('.grid--area.-widgeted:nth-of-type(2)')
+ expect(created_area.area)
+ .to have_selector('.subject', text: accountable_work_package.subject)
+
# Add widget below existing widgets
my_page.add_widget(2, 2, :row, "Work packages I am accountable for")