Merge pull request #7897 from opf/housekeeping/stabilize-attachements-upload-spec

Attempt to stabilise attachments_upload_spec
pull/7899/head
Oliver Günther 5 years ago committed by GitHub
commit 76bf319c21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      spec/features/work_packages/attachments/attachment_upload_spec.rb

@ -103,10 +103,12 @@ describe 'Upload attachment to work package', js: true do
expect(editable).to have_selector('img[src*="/api/v3/attachments/"]', wait: 20)
end
sleep 2
# Besides testing caption functionality this also slows down clicking on the submit button
# so that the image is properly embedded
caption = page.find('figure.image figcaption')
caption.click
caption.click(x: 10, y: 10)
sleep 0.2
caption.base.send_keys('Some image caption')

Loading…
Cancel
Save