debian-mirror-gitlab/spec/features/projects/show/user_sees_last_commit_ci_status_spec.rb

21 lines
585 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2018-10-15 14:42:47 +05:30
require 'spec_helper'
2020-06-23 00:09:42 +05:30
RSpec.describe 'Projects > Show > User sees last commit CI status' do
2020-04-08 14:13:33 +05:30
let_it_be(:project) { create(:project, :repository, :public) }
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)
2019-12-26 22:10:19 +05:30
page.within '.commit-detail' do
2018-10-15 14:42:47 +05:30
expect(page).to have_content(project.commit.sha[0..6])
2020-04-08 14:13:33 +05:30
expect(page).to have_selector('[aria-label="Pipeline: skipped"]')
2018-10-15 14:42:47 +05:30
end
end
end