Skip to content
代码片段 群组 项目
未验证 提交 73baea8a 编辑于 作者: Chloe Liu's avatar Chloe Liu 提交者: GitLab
浏览文件

Merge branch 'trea-remove-run-pipeline-web-spec' into 'master'

Remove redundant pipeline spec

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/167373



Merged-by: default avatarChloe Liu <yliu@gitlab.com>
Approved-by: default avatarRichard Chong <rchong@gitlab.com>
Approved-by: default avatarChloe Liu <yliu@gitlab.com>
Co-authored-by: default avatartreagitlab <trea@gitlab.com>
No related branches found
No related tags found
无相关合并请求
# frozen_string_literal: true
module QA
RSpec.describe 'Verify' do
describe 'Run pipeline', :blocking, product_group: :pipeline_execution do
context 'with web only rule' do
let(:job_name) { 'test_job' }
let(:project) { create(:project, name: 'web-only-pipeline') }
let!(:ci_file) do
create(:commit, project: project, commit_message: 'Add .gitlab-ci.yml', actions: [
{
action: 'create',
file_path: '.gitlab-ci.yml',
content: <<~YAML
#{job_name}:
tags:
- #{project.name}
script: echo 'OK'
only:
- web
YAML
}
])
end
before do
Flow::Login.sign_in
project.visit!
Page::Project::Menu.perform(&:go_to_pipelines)
end
it 'can trigger pipeline', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/348011' do
Page::Project::Pipeline::Index.perform do |index|
expect(index).to have_no_pipeline # should not auto trigger pipeline
index.click_run_pipeline_button
end
Page::Project::Pipeline::New.perform(&:click_run_pipeline_button)
Page::Project::Pipeline::Show.perform do |pipeline|
expect(pipeline).to have_job(job_name)
end
end
end
end
end
end
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册