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

builds_spec.rb « commit « projects « features « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 36a746ac83d8bd9683f26e7cd6b319f96cc398c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'spec_helper'

feature 'project commit pipelines', :js do
  given(:project) { create(:project, :repository) }

  background do
    user = create(:user)
    project.add_master(user)
    sign_in(user)
  end

  context 'when no builds triggered yet' do
    background do
      create(:ci_pipeline, project: project,
                           sha: project.commit.sha,
                           ref: 'master')
    end

    scenario 'user views commit pipelines page' do
      visit pipelines_project_commit_path(project, project.commit.sha)

      page.within('.table-holder') do
        expect(page).to have_content project.pipelines[0].id     # pipeline ids
      end
    end
  end
end