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 stabilize flickering spec

ulferts87eac68ce38a
diff --git a/spec/features/work_packages/attachments/attachment_upload_spec.rb b/spec/features/work_packages/attachments/attachment_upload_spec.rb
index 64d6045d661..e310075506e 100644
--- a/spec/features/work_packages/attachments/attachment_upload_spec.rb
+++ b/spec/features/work_packages/attachments/attachment_upload_spec.rb
@@ -29,7 +29,6 @@ describe 'Upload attachment to work package', js: true do
describe 'wysiwyg editor' do
context 'on an existing page' do
-
before do
wp_page.visit!
wp_page.ensure_page_loaded
@@ -38,7 +37,6 @@ describe 'Upload attachment to work package', js: true do
it 'can upload an image via drag & drop' do
# Activate the edit field
field.activate!
- target = find('.ck-content')
editor.expect_button 'Insert image'
@@ -109,6 +107,7 @@ describe 'Upload attachment to work package', js: true do
# so that the image is properly embedded
caption = page.find('figure.image figcaption')
caption.click
+ sleep 0.2
caption.base.send_keys('Some image caption')
sleep 2