debian-mirror-gitlab/spec/features/projects/commit/builds_spec.rb

28 lines
678 B
Ruby
Raw Normal View History

2016-06-02 11:05:42 +05:30
require 'spec_helper'
2018-11-08 19:23:39 +05:30
describe 'project commit pipelines', :js do
let(:project) { create(:project, :repository) }
2016-06-02 11:05:42 +05:30
2018-11-08 19:23:39 +05:30
before do
2016-06-02 11:05:42 +05:30
user = create(:user)
2018-03-17 18:26:18 +05:30
project.add_master(user)
2017-09-10 17:25:29 +05:30
sign_in(user)
2016-06-02 11:05:42 +05:30
end
context 'when no builds triggered yet' do
2018-11-08 19:23:39 +05:30
before do
create(:ci_pipeline, project: project,
sha: project.commit.sha,
ref: 'master')
2016-06-02 11:05:42 +05:30
end
2018-11-08 19:23:39 +05:30
it 'user views commit pipelines page' do
2017-09-10 17:25:29 +05:30
visit pipelines_project_commit_path(project, project.commit.sha)
2016-06-02 11:05:42 +05:30
2017-08-17 22:00:37 +05:30
page.within('.table-holder') do
expect(page).to have_content project.pipelines[0].id # pipeline ids
end
2016-06-02 11:05:42 +05:30
end
end
end