Remove IDE image upload spec

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/45045
This commit is contained in:
Phil Hughes 2018-04-27 10:28:06 +01:00
parent c45b7ab597
commit 8c119b5658
No known key found for this signature in database
GPG Key ID: 32245528C52E0F9F
1 changed files with 0 additions and 13 deletions

View File

@ -35,17 +35,4 @@ feature 'Multi-file editor upload file', :js do
expect(page).to have_selector('.multi-file-tab', text: 'doc_sample.txt')
expect(find('.blob-editor-container .lines-content')['innerText']).to have_content(File.open(txt_file, &:readline))
end
it 'uploads image file' do
find('.add-to-tree').click
# make the field visible so capybara can use it
execute_script('document.querySelector("#file-upload").classList.remove("hidden")')
attach_file('file-upload', img_file)
find('.add-to-tree').click
expect(page).to have_selector('.multi-file-tab', text: 'dk.png')
expect(page).not_to have_selector('.monaco-editor')
end
end