Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
97ef5277
Commit
97ef5277
authored
5 months ago
by
🤖 GitLab Bot 🤖
Browse files
Options
Downloads
Plain Diff
Automatic merge of gitlab-org/gitlab master
parents
94117f3d
73baea8a
No related branches found
No related tags found
1 merge request
!170053
Security patch upgrade alert: Only expose to admins 17-4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qa/qa/specs/features/browser_ui/4_verify/pipeline/run_pipeline_via_web_only_spec.rb
+0
-47
0 additions, 47 deletions
...er_ui/4_verify/pipeline/run_pipeline_via_web_only_spec.rb
with
0 additions
and
47 deletions
qa/qa/specs/features/browser_ui/4_verify/pipeline/run_pipeline_via_web_only_spec.rb
deleted
100644 → 0
+
0
−
47
View file @
94117f3d
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment