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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Next stab at the document spec
Oliver Günther278eee34938a
diff --git a/modules/documents/spec/features/attachment_upload_spec.rb b/modules/documents/spec/features/attachment_upload_spec.rbindex ebf3a5d730e..fec56aa24b7 100644--- a/modules/documents/spec/features/attachment_upload_spec.rb+++ b/modules/documents/spec/features/attachment_upload_spec.rb@@ -62,15 +62,18 @@ describe 'Upload attachment to documents', js: true doclick_on 'Create'+ expect(page).to have_selector('.document-category-elements--header', text: 'New documentation')expect(page).to have_selector('#content img', count: 1)expect(page).to have_content('Image uploaded on creation')- click_on 'New documentation'+ document = ::Document.last+ expect(document.title).to eq 'New documentation'- within '.toolbar-items' do- click_on 'Edit'- end+ find('.document-category-elements--header a', text: 'New documentation').click+ expect(page).to have_current_path "/documents/#{document.id}", wait: 10+ find('.toolbar-items .button', text: 'Edit').click+ expect(page).to have_current_path "/documents/#{document.id}/edit", wait: 10editor.drag_attachment image_fixture, 'Image uploaded the second time'expect(page).to have_selector('attachment-list-item', text: 'image.png', count: 2)