Welcome to mirror list, hosted at ThFree Co, Russian Federation.

view_project_activity_spec.rb « project « 1_manage « browser_ui « features « specs « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b98d298268414d3cd2354d7549825241427f7d79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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' do
        Flow::Login.sign_in

        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.visit!

        Page::Project::Menu.perform(&:click_activity)
        Page::Project::Activity.perform(&:click_push_events)

        expect(page).to have_content('pushed new branch master')
      end
    end
  end
end