Commit c2f8eeb4 authored by Mike Greiling's avatar Mike Greiling

explicitly check innerText since selenium webdriver only looks at visible text

parent 2ea76a41
...@@ -30,7 +30,7 @@ feature 'Multi-file editor upload file', :js do ...@@ -30,7 +30,7 @@ feature 'Multi-file editor upload file', :js do
find('.add-to-tree').click find('.add-to-tree').click
expect(page).to have_selector('.repo-tab', text: 'doc_sample.txt') expect(page).to have_selector('.repo-tab', text: 'doc_sample.txt')
expect(page).to have_content(File.open(txt_file, &:readline)) expect(find('.blob-editor-container .lines-content')['innerText']).to have_content(File.open(txt_file, &:readline))
end end
it 'uploads image file' do it 'uploads image file' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment