summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features/browser_ui/1_manage/project/view_project_activity_spec.rb
blob: e5faebd2a805437e953dad9eb24b8c68b5513028 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module QA
  RSpec.describe 'Manage' do
    describe 'Project activity' do
      it 'user creates an event in the activity page upon Git push', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/quality/test_cases/1591' do
        Flow::Login.sign_in

        project = Resource::Repository::ProjectPush.fabricate! do |push|
          push.file_name = 'README.md'
          push.file_content = '# This is a test project'
          push.commit_message = 'Add README.md'
        end.project

        project.visit!
        Page::Project::Menu.perform(&:click_activity)
        Page::Project::Activity.perform do |activity|
          activity.click_push_events

          expect(activity).to have_content("pushed new branch #{project.default_branch}")
        end
      end
    end
  end
end