31 lines
672 B
Ruby
31 lines
672 B
Ruby
|
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
|