debian-mirror-gitlab/spec/features/projects/show/user_sees_last_commit_ci_status_spec.rb
2020-06-23 00:09:42 +05:30

21 lines
585 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Projects > Show > User sees last commit CI status' do
let_it_be(:project) { create(:project, :repository, :public) }
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 '.commit-detail' do
expect(page).to have_content(project.commit.sha[0..6])
expect(page).to have_selector('[aria-label="Pipeline: skipped"]')
end
end
end