explicitly check innerText since selenium webdriver only looks at visible text
This commit is contained in:
parent
2ea76a4130
commit
c2f8eeb490
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue