summaryrefslogtreecommitdiff
path: root/spec/features/projects/files/find_files_spec.rb
blob: 57d67b289203a84e91a4b6d456a965a75cbe08af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'spec_helper'

feature 'Find files button in the tree header' do
  given(:user) { create(:user) }
  given(:project) { create(:project, :repository) }

  background do
    sign_in(user)
    project.team << [user, :developer]
  end

  scenario 'project main screen' do
    visit project_path(project)

    expect(page).to have_selector('.tree-controls .shortcuts-find-file')
  end

  scenario 'project tree screen' do
    visit project_tree_path(project, project.default_branch)

    expect(page).to have_selector('.tree-controls .shortcuts-find-file')
  end
end