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
Tatuya Kamada
gitlab-ce
Commits
f440bfd2
Commit
f440bfd2
authored
Mar 02, 2017
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve groups list specs
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
0a10d859
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
app/views/dashboard/groups/_groups.html.haml
app/views/dashboard/groups/_groups.html.haml
+1
-2
spec/features/dashboard/groups_list_spec.rb
spec/features/dashboard/groups_list_spec.rb
+3
-3
spec/features/explore/groups_list_spec.rb
spec/features/explore/groups_list_spec.rb
+1
-1
No files found.
app/views/dashboard/groups/_groups.html.haml
View file @
f440bfd2
.js-groups-list-holder
%ul
.content-list
-
@group_members
.
each
do
|
group_member
|
-
group
=
group_member
.
group
=
render
'shared/groups/group'
,
group:
group
,
group_member:
group_member
=
render
'shared/groups/group'
,
group:
group_member
.
group
,
group_member:
group_member
=
paginate
@group_members
,
theme:
'gitlab'
spec/features/dashboard/groups_list_spec.rb
View file @
f440bfd2
require
'spec_helper'
RSpec
.
describe
'Dashboard Groups page'
,
js:
true
,
feature:
true
do
describe
'Dashboard Groups page'
,
js:
true
,
feature:
true
do
include
WaitForAjax
let!
(
:user
)
{
create
:user
}
...
...
@@ -40,8 +40,8 @@ RSpec.describe 'Dashboard Groups page', js: true, feature: true do
wait_for_ajax
expect
(
page
).
to
have_content
(
group
.
full_name
)
expect
(
page
).
to
have_content
(
public
_group
.
full_name
)
expect
(
page
).
not_to
have_content
(
private
_group
.
full_name
)
expect
(
page
).
to
have_content
(
nested
_group
.
full_name
)
expect
(
page
).
not_to
have_content
(
another
_group
.
full_name
)
expect
(
page
.
all
(
'.js-groups-list-holder .content-list li'
).
length
).
to
eq
2
end
end
spec/features/explore/groups_list_spec.rb
View file @
f440bfd2
require
'spec_helper'
RSpec
.
describe
'Explore Groups page'
,
js:
true
,
feature:
true
do
describe
'Explore Groups page'
,
js:
true
,
feature:
true
do
include
WaitForAjax
let!
(
:user
)
{
create
:user
}
...
...
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