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

user_view_commits_spec.rb « commits « features « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5907534220d535ecdd38d2f72d1532534818d68e (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

require 'spec_helper'

RSpec.describe 'Commit > User view commits' do
  let_it_be(:project) { create(:project, :public, :repository) }
  let_it_be(:user) { project.creator }

  before do
    visit project_commits_path(project)
  end

  describe 'Commits List' do
    it 'displays the correct number of commits per day in the header' do
      expect(first('.js-commit-header').find('.commits-count').text).to eq('1 commit')
    end

    it 'lists the correct number of commits' do
      expect(page).to have_selector('#commits-list > li:nth-child(2) > ul', count: 1)
    end
  end
end