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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
a18df1d1
Commit
a18df1d1
authored
Jun 16, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature test for gitab CI dropdown
parent
483dc62e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
spec/features/projects/files/gitlab_ci_yml_dropdown_spec.rb
spec/features/projects/files/gitlab_ci_yml_dropdown_spec.rb
+30
-0
No files found.
spec/features/projects/files/gitlab_ci_yml_dropdown_spec.rb
0 → 100644
View file @
a18df1d1
require
'spec_helper'
feature
'User wants to add a .gitlab-ci.yml file'
,
feature:
true
do
include
WaitForAjax
before
do
user
=
create
(
:user
)
project
=
create
(
:project
)
project
.
team
<<
[
user
,
:master
]
login_as
user
visit
namespace_project_new_blob_path
(
project
.
namespace
,
project
,
'master'
,
file_name:
'.gitlab-ci.yml'
)
end
scenario
'user can see .gitlab-ci.yml dropdown'
do
expect
(
page
).
to
have_css
(
'.gitlab-ci-yml-selector'
)
end
scenario
'user can pick a template from the dropdown'
,
js:
true
do
find
(
'.js-gitlab-ci-yml-selector'
).
click
wait_for_ajax
within
'.gitlab-ci-yml-selector'
do
find
(
'.dropdown-input-field'
).
set
(
'jekyll'
)
find
(
'.dropdown-content li'
,
text:
'jekyll'
).
click
end
wait_for_ajax
expect
(
page
).
to
have_content
(
'This file is a template, and might need editing before it works on your project'
)
expect
(
page
).
to
have_content
(
'jekyll build -d test'
)
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