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

fix flickering spec

ulferts026355e3b548
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 b439d894681..04a99ff0d32 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,16 +75,13 @@ 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.1)
+ sleep(0.5)
my_page.add_widget(1, 2, :column, "Work packages table")
- sleep(0.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)')
-
- sleep(0.1)
-
filter_area.expect_to_span(1, 2, 2, 3)
# At the beginning, the default query is displayed
@@ -107,8 +104,6 @@ describe 'Arbitrary WorkPackage query table widget on my page', type: :feature,
columns.assume_opened
columns.remove 'Subject'
- my_page.expect_and_dismiss_notification message: I18n.t('js.notice_successful_update')
-
expect(filter_area.area)
.to have_selector('.id', text: type_work_package.id)