Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
40e78178
Commit
40e78178
authored
Jan 10, 2022
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab master
parents
17629d59
8fa4d3c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
qa/qa/specs/features/browser_ui/4_verify/pipeline/update_ci_file_with_pipeline_editor_spec.rb
...rify/pipeline/update_ci_file_with_pipeline_editor_spec.rb
+12
-2
No files found.
qa/qa/specs/features/browser_ui/4_verify/pipeline/update_ci_file_with_pipeline_editor_spec.rb
View file @
40e78178
...
...
@@ -11,6 +11,14 @@ module QA
end
end
let!
(
:runner
)
do
Resource
::
Runner
.
fabricate_via_api!
do
|
runner
|
runner
.
project
=
project
runner
.
name
=
random_test_string
runner
.
tags
=
[
random_test_string
]
end
end
let!
(
:commit
)
do
Resource
::
Repository
::
Commit
.
fabricate_via_api!
do
|
commit
|
commit
.
project
=
project
...
...
@@ -21,6 +29,7 @@ module QA
file_path:
'.gitlab-ci.yml'
,
content:
<<~
YAML
test_job:
tags: ['
#{
random_test_string
}
']
script:
- echo "Simple test!"
YAML
...
...
@@ -33,11 +42,12 @@ module QA
before
do
Flow
::
Login
.
sign_in
project
.
visit!
Support
::
Waiter
.
wait_until
{
project
.
pipelines
.
first
[
:status
]
==
'success'
}
Page
::
Project
::
Menu
.
perform
(
&
:go_to_pipeline_editor
)
end
after
do
project
.
remove_via_api!
[
runner
,
project
].
each
(
&
:remove_via_api!
)
end
it
'creates new pipeline and target branch'
,
testcase:
'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/349005'
do
...
...
@@ -50,7 +60,7 @@ module QA
expect
(
show
.
target_branch_name
).
to
eq
(
random_test_string
)
expect
(
show
.
current_branch
).
to
eq
(
random_test_string
)
expect
(
show
.
editing_content
).
to
have_content
(
random_test_string
)
expect
(
show
.
pipeline_id
).
to
eq
(
project
.
pipelines
.
first
[
:id
]
)
expect
{
show
.
pipeline_id
}.
to
eventually_eq
(
project
.
pipelines
.
pluck
(
:id
).
max
).
within
(
max_duration:
60
,
sleep_interval:
3
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment