Commit a9ff2e3a authored by charlie ablett's avatar charlie ablett

Merge branch '215700-add-spec-to-ensure-correct-commits-number-rendered' into 'master'

Add feature spec for user view commits

Closes #215700

See merge request gitlab-org/gitlab!30424
parents cc685539 58c3ab83
# frozen_string_literal: true
require 'spec_helper'
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment