diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-08-08 15:50:51 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-08-08 15:50:51 +0300 |
commit | c70f98be62fe2b24c65089c403fe9e6cad756ce9 (patch) | |
tree | 954f3d2728c3b1bb96a5a390fc2ba6ec6690b622 /spec | |
parent | ca2a2aea898d21ad06721e881eaec0d2831136bb (diff) | |
parent | db549f5d347503c4bf31c708d44566cdde513875 (diff) |
Merge branch 'project-homepage-activity' into 'master'
Fixed activity not loading on project homepage
See merge request !13373
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/projects_spec.rb | 15 |
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 |