debian-mirror-gitlab/spec/features/projects/files/find_files_spec.rb

24 lines
569 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
require 'spec_helper'
2017-09-10 17:25:29 +05:30
feature 'Find files button in the tree header' do
2017-08-17 22:00:37 +05:30
given(:user) { create(:user) }
2017-09-10 17:25:29 +05:30
given(:project) { create(:project, :repository) }
2017-08-17 22:00:37 +05:30
background do
2017-09-10 17:25:29 +05:30
sign_in(user)
2017-08-17 22:00:37 +05:30
project.team << [user, :developer]
end
scenario 'project main screen' do
2017-09-10 17:25:29 +05:30
visit project_path(project)
2017-08-17 22:00:37 +05:30
expect(page).to have_selector('.tree-controls .shortcuts-find-file')
end
scenario 'project tree screen' do
2017-09-10 17:25:29 +05:30
visit project_tree_path(project, project.default_branch)
2017-08-17 22:00:37 +05:30
expect(page).to have_selector('.tree-controls .shortcuts-find-file')
end
end