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
7640b050
Commit
7640b050
authored
Apr 04, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature specs for list of badges page
parent
a3a93ba4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
spec/features/projects/badges/list_spec.rb
spec/features/projects/badges/list_spec.rb
+34
-0
No files found.
spec/features/projects/badges/list_spec.rb
0 → 100644
View file @
7640b050
require
'spec_helper'
feature
'list of badges'
do
include
Select2Helper
background
do
user
=
create
(
:user
)
project
=
create
(
:project
)
project
.
team
<<
[
user
,
:master
]
login_as
(
user
)
visit
edit_namespace_project_path
(
project
.
namespace
,
project
)
end
scenario
'user displays list of badges'
do
click_link
'Badges'
expect
(
page
).
to
have_content
'build status'
expect
(
page
).
to
have_content
'Markdown'
expect
(
page
).
to
have_content
'HTML'
expect
(
page
).
to
have_css
(
'.highlight'
,
count:
2
)
expect
(
page
).
to
have_xpath
(
"//img[@alt='build status']"
)
page
.
within
(
'.highlight'
,
match: :first
)
do
expect
(
page
).
to
have_content
'badges/master/build.svg'
end
end
scenario
'user changes current ref on badges list page'
,
js:
true
do
click_link
'Badges'
select2
(
'improve/awesome'
,
from:
'#ref'
)
expect
(
page
).
to
have_content
'badges/improve/awesome/build.svg'
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