diff options
author | TM Lee <tm89lee@gmail.com> | 2017-03-10 04:58:48 +0300 |
---|---|---|
committer | TM Lee <tm89lee@gmail.com> | 2017-04-23 13:44:42 +0300 |
commit | 7940a5d49ca7b0abbd0fed3bcc0184ebd33a7d0b (patch) | |
tree | 524e1e2139f19912d7026cc7a18895151a5b3173 /spec/features/projects/files | |
parent | 1005389f70070245092c1ae5f3f9b10b8e7c102e (diff) |
[#22826] Ensure find_file_link and download button is part of file tree header
- Move the find_file_link and download partial into the project tree_header partial
- Added Changelog
Diffstat (limited to 'spec/features/projects/files')
-rw-r--r-- | spec/features/projects/files/find_files_spec.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/spec/features/projects/files/find_files_spec.rb b/spec/features/projects/files/find_files_spec.rb new file mode 100644 index 00000000000..06f52bef902 --- /dev/null +++ b/spec/features/projects/files/find_files_spec.rb @@ -0,0 +1,28 @@ +require 'spec_helper' + +feature 'Find files button in the tree header', feature: true do + given(:user) { create(:user) } + given(:project) { create(:project) } + + background do + login_as(user) + project.team << [user, :developer] + end + + scenario 'project main screen' do + visit namespace_project_path( + project.namespace, + project + ) + expect(page).to have_selector('.tree-controls .shortcuts-find-file') + end + + scenario 'project tree screen' do + visit namespace_project_tree_path( + project.namespace, + project, + project.default_branch + ) + expect(page).to have_selector('.tree-controls .shortcuts-find-file') + end +end |