attempt to fix flickering spec

pull/7730/head
ulferts 5 years ago
parent 4e4e11acf7
commit e27e72eec8
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)
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

Loading…
Cancel
Save