blob: 740331fe42ac8800849ef92ffe086002a550f12d (
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
28
|
require 'spec_helper'
feature 'project commit pipelines', js: true do
given(:project) { create(:project, :repository) }
background do
user = create(:user)
project.team << [user, :master]
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].status # pipeline status
expect(page).to have_content project.pipelines[0].id # pipeline ids
end
end
end
end
|