explicitly check innerText since selenium webdriver only looks at visible text

This commit is contained in:
Mike Greiling 2017-11-01 09:47:20 -05:00
parent 2ea76a4130
commit c2f8eeb490
No known key found for this signature in database
GPG key ID: 0303DF507FA67596

View file

@ -30,7 +30,7 @@ feature 'Multi-file editor upload file', :js do
find('.add-to-tree').click
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
it 'uploads image file' do