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

user_sees_last_commit_ci_status_spec.rb « show « projects « features « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2267cff5490f338e3d1519f17222dc3c19b879a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'Projects > Show > User sees last commit CI status', feature_category: :groups_and_projects 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