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

ulfertse27e72eec8e1
diff --git a/modules/my_page/spec/features/my/assigned_to_me_spec.rb b/modules/my_page/spec/features/my/assigned_to_me_spec.rb
index fb9bd69ce51..b95b1fa8726 100644
--- a/modules/my_page/spec/features/my/assigned_to_me_spec.rb
+++ b/modules/my_page/spec/features/my/assigned_to_me_spec.rb
@@ -176,16 +176,6 @@ describe 'Assigned to me embedded query on my page', type: :feature, js: true do
# exists as default
assigned_area.expect_to_exist
- sleep(0.5)
-
- assigned_area.resize_to(1, 2)
-
- my_page.expect_and_dismiss_notification message: I18n.t('js.notice_successful_update')
-
- assigned_area.expect_to_span(1, 1, 2, 3)
- # has been moved down by resizing
- created_area.expect_to_span(2, 2, 3, 3)
-
within assigned_area.area do
expect(page)
.to have_selector('.subject', text: assigned_work_package.subject)
@@ -199,5 +189,13 @@ describe 'Assigned to me embedded query on my page', type: :feature, js: true do
expect(page)
.to have_selector('.subject', text: assigned_work_package_2.subject)
end
+
+ assigned_area.resize_to(1, 2)
+
+ my_page.expect_notification(message: I18n.t('js.notice_successful_update'))
+
+ assigned_area.expect_to_span(1, 1, 2, 3)
+ # has been moved down by resizing
+ created_area.expect_to_span(2, 2, 3, 3)
end
end