attempt to fix flickering spec

pull/7716/head
ulferts 5 years ago
parent 3edab0d605
commit 22ed15cbbf
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 18
      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)
sleep(0.1)
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

Loading…
Cancel
Save