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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
4745361c
Commit
4745361c
authored
Apr 12, 2018
by
Mayra Cabrera
Committed by
Jose
Apr 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure an autodevops instance exists for pipelines settings
parent
e40bc1b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
spec/features/projects/settings/pipelines_settings_spec.rb
spec/features/projects/settings/pipelines_settings_spec.rb
+6
-0
No files found.
spec/features/projects/settings/pipelines_settings_spec.rb
View file @
4745361c
...
@@ -8,6 +8,7 @@ describe "Projects > Settings > Pipelines settings" do
...
@@ -8,6 +8,7 @@ describe "Projects > Settings > Pipelines settings" do
before
do
before
do
sign_in
(
user
)
sign_in
(
user
)
project
.
add_role
(
user
,
role
)
project
.
add_role
(
user
,
role
)
create
(
:project_auto_devops
,
project:
project
)
end
end
context
'for developer'
do
context
'for developer'
do
...
@@ -27,14 +28,17 @@ describe "Projects > Settings > Pipelines settings" do
...
@@ -27,14 +28,17 @@ describe "Projects > Settings > Pipelines settings" do
visit
project_settings_ci_cd_path
(
project
)
visit
project_settings_ci_cd_path
(
project
)
fill_in
(
'Test coverage parsing'
,
with:
'coverage_regex'
)
fill_in
(
'Test coverage parsing'
,
with:
'coverage_regex'
)
page
.
within
'.general-ci-settings'
do
page
.
within
'.general-ci-settings'
do
click_on
'Save changes'
click_on
'Save changes'
end
end
expect
(
page
.
status_code
).
to
eq
(
200
)
expect
(
page
.
status_code
).
to
eq
(
200
)
page
.
within
'.general-ci-settings'
do
page
.
within
'.general-ci-settings'
do
expect
(
page
).
to
have_button
(
'Save changes'
,
disabled:
false
)
expect
(
page
).
to
have_button
(
'Save changes'
,
disabled:
false
)
end
end
expect
(
page
).
to
have_field
(
'Test coverage parsing'
,
with:
'coverage_regex'
)
expect
(
page
).
to
have_field
(
'Test coverage parsing'
,
with:
'coverage_regex'
)
end
end
...
@@ -47,6 +51,7 @@ describe "Projects > Settings > Pipelines settings" do
...
@@ -47,6 +51,7 @@ describe "Projects > Settings > Pipelines settings" do
end
end
expect
(
page
.
status_code
).
to
eq
(
200
)
expect
(
page
.
status_code
).
to
eq
(
200
)
page
.
within
'.general-ci-settings'
do
page
.
within
'.general-ci-settings'
do
expect
(
page
).
to
have_button
(
'Save changes'
,
disabled:
false
)
expect
(
page
).
to
have_button
(
'Save changes'
,
disabled:
false
)
end
end
...
@@ -68,6 +73,7 @@ describe "Projects > Settings > Pipelines settings" do
...
@@ -68,6 +73,7 @@ describe "Projects > Settings > Pipelines settings" do
expect
(
page
.
status_code
).
to
eq
(
200
)
expect
(
page
.
status_code
).
to
eq
(
200
)
expect
(
project
.
auto_devops
).
to
be_present
expect
(
project
.
auto_devops
).
to
be_present
expect
(
project
.
auto_devops
).
not_to
be_enabled
expect
(
project
.
auto_devops
).
not_to
be_enabled
expect
(
project
.
auto_devops
.
domain
).
to
eq
(
'test.com'
)
end
end
end
end
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