2018-10-15 14:42:47 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'Projects > Show > User sees last commit CI status' do
|
|
|
|
set(:project) { create(:project, :repository, :public) }
|
|
|
|
|
2019-09-30 21:07:59 +05:30
|
|
|
before do
|
|
|
|
stub_feature_flags(vue_file_list: false)
|
|
|
|
end
|
|
|
|
|
2018-10-15 14:42:47 +05:30
|
|
|
it 'shows the project README', :js do
|
|
|
|
project.enable_ci
|
|
|
|
pipeline = create(:ci_pipeline, project: project, sha: project.commit.sha, ref: 'master')
|
|
|
|
pipeline.skip
|
|
|
|
|
|
|
|
visit project_path(project)
|
|
|
|
|
|
|
|
page.within '.blob-commit-info' do
|
|
|
|
expect(page).to have_content(project.commit.sha[0..6])
|
|
|
|
expect(page).to have_link('Commit: skipped')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|