summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-11-01 09:47:20 -0500
committerMike Greiling <mike@pixelcog.com>2017-11-01 09:47:20 -0500
commitc2f8eeb490f8ba2c2f9db3eb4cd8960443c694aa (patch)
tree945dee05f71be6c748d3325947314a7901f713b8
parent2ea76a4130bb90b105580a1980e0390a0a097f6f (diff)
downloadgitlab-ce-c2f8eeb490f8ba2c2f9db3eb4cd8960443c694aa.tar.gz
explicitly check innerText since selenium webdriver only looks at visible text
-rw-r--r--spec/features/projects/tree/upload_file_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/projects/tree/upload_file_spec.rb b/spec/features/projects/tree/upload_file_spec.rb
index 432739612d8..b7e940eac43 100644
--- a/spec/features/projects/tree/upload_file_spec.rb
+++ b/spec/features/projects/tree/upload_file_spec.rb
@@ -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