summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-08-08 12:43:45 +0100
committerPhil Hughes <me@iamphill.com>2017-08-08 12:43:45 +0100
commitdb549f5d347503c4bf31c708d44566cdde513875 (patch)
tree632cc11ae66af5892977990c692ede996c970f7b /spec
parent0ec87b3bf0ac27af5f5fedf97d51c8b14b050f50 (diff)
downloadgitlab-ce-db549f5d347503c4bf31c708d44566cdde513875.tar.gz
Fixed activity not loading on project homepageproject-homepage-activity
Diffstat (limited to 'spec')
-rw-r--r--spec/features/projects_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/features/projects_spec.rb b/spec/features/projects_spec.rb
index 7e4d53332e5..d3d7915bebf 100644
--- a/spec/features/projects_spec.rb
+++ b/spec/features/projects_spec.rb
@@ -167,6 +167,21 @@ feature 'Project' do
end
end
+ describe 'activity view' do
+ let(:user) { create(:user, project_view: 'activity') }
+ let(:project) { create(:project, :repository) }
+
+ before do
+ project.team << [user, :master]
+ sign_in user
+ visit project_path(project)
+ end
+
+ it 'loads activity', :js do
+ expect(page).to have_selector('.event-item')
+ end
+ end
+
def remove_with_confirm(button_text, confirm_with)
click_button button_text
fill_in 'confirm_name_input', with: confirm_with