attempt to stabilize flickering spec

pull/7539/head
ulferts 5 years ago
parent 023414568f
commit 0065dd5fe4
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 5
      spec/features/wiki/attachment_upload_spec.rb

@ -66,8 +66,9 @@ describe 'Upload attachment to wiki page', js: true do
click_on "Edit"
end
# Replace one image with a named attachment URL (Regression #28381)
editor.set_markdown "![my-first-image](image.png)\n\nText that prevents the two images colliding"
# Replace the image with a named attachment URL (Regression #28381)
expect(page).to have_selector('.ck-editor__editable')
editor.set_markdown "\n\nSome text\n![my-first-image](image.png)\n\nText that prevents the two images colliding"
editor.drag_attachment image_fixture, 'Image uploaded the second time'

Loading…
Cancel
Save