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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/commits_spec.rb')
-rw-r--r--spec/features/commits_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/features/commits_spec.rb b/spec/features/commits_spec.rb
index c38ae0c2b0d..fd09a7f7343 100644
--- a/spec/features/commits_spec.rb
+++ b/spec/features/commits_spec.rb
@@ -8,6 +8,7 @@ RSpec.describe 'Commits', feature_category: :source_code_management do
describe 'CI' do
before do
+ stub_feature_flags(pipeline_details_header_vue: false)
sign_in(user)
stub_ci_pipeline_to_return_yaml_file
end
@@ -186,6 +187,13 @@ RSpec.describe 'Commits', feature_category: :source_code_management do
visit project_commits_path(project, branch_name)
end
+ it 'includes a date on which the commits were authored' do
+ commits = project.repository.commits(branch_name, limit: 40)
+ commits.chunk { |c| c.committed_date.in_time_zone.to_date }.each do |day, _daily_commits|
+ expect(page).to have_content(day.strftime("%b %d, %Y"))
+ end
+ end
+
it 'includes the committed_date for each commit' do
commits = project.repository.commits(branch_name, limit: 40)