diff options
author | Sean McGivern <sean@gitlab.com> | 2016-08-22 17:19:39 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-08-23 11:01:20 +0100 |
commit | 1a7c293c2ddbe960accec355a0ed399de82e0c41 (patch) | |
tree | 31534ae5d5694a917cb597c0ed92a096bcf9a348 /spec | |
parent | f633f7db66d4ff42abbe764c21f9da4e49045f91 (diff) | |
download | gitlab-ce-1a7c293c2ddbe960accec355a0ed399de82e0c41.tar.gz |
Fix file links on project page Files viewfix-file-links-on-project-page
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/projects_spec.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/spec/features/projects_spec.rb b/spec/features/projects_spec.rb index 1b14c66fe28..e00d85904d5 100644 --- a/spec/features/projects_spec.rb +++ b/spec/features/projects_spec.rb @@ -115,6 +115,35 @@ feature 'Project', feature: true do end end + describe 'tree view (default view is set to Files)' do + let(:user) { create(:user, project_view: 'files') } + let(:project) { create(:forked_project_with_submodules) } + + before do + project.team << [user, :master] + login_as user + visit namespace_project_path(project.namespace, project) + end + + it 'has working links to files' do + click_link('PROCESS.md') + + expect(page.status_code).to eq(200) + end + + it 'has working links to directories' do + click_link('encoding') + + expect(page.status_code).to eq(200) + end + + it 'has working links to submodules' do + click_link('645f6c4c') + + expect(page.status_code).to eq(200) + end + end + def remove_with_confirm(button_text, confirm_with) click_button button_text fill_in 'confirm_name_input', with: confirm_with |