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
e0c07b5e
Commit
e0c07b5e
authored
Apr 22, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for filtering owned projects
parent
c9fe9f59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
spec/features/dashboard/user_filters_projects_spec.rb
spec/features/dashboard/user_filters_projects_spec.rb
+27
-0
No files found.
spec/features/dashboard
_filter
_spec.rb
→
spec/features/dashboard
/user_filters_projects
_spec.rb
View file @
e0c07b5e
require
'spec_helper'
describe
"Dashboard
projects filters"
,
feature:
true
,
js
:
true
do
describe
"Dashboard
> User filters projects"
,
feature
:
true
do
context
'filtering personal projects'
do
describe
'filtering personal projects'
do
before
do
user
=
create
(
:user
)
project
=
create
(
:project
,
name:
"Victorialand"
,
namespace:
user
.
namespace
)
project
.
team
<<
[
user
,
:master
]
user2
=
create
(
:user
)
project2
=
create
(
:project
,
name:
"Treasure"
,
namespace:
user2
.
namespace
)
project2
.
team
<<
[
user
,
:developer
]
login_as
(
user
)
visit
dashboard_projects_path
open_filter_dropdown
click_link
"Owned by me"
end
it
'filters by projects "Owned by me"'
do
sleep
1
open_filter_dropdown
page
.
within
(
'ul.dropdown-menu.dropdown-menu-align-right'
)
do
expect
(
page
).
to
have_css
(
'.is-active'
,
text:
'Owned by me'
)
end
end
end
click_link
"Owned by me"
def
open_filter_dropdown
find
(
'button.dropdown-toggle.btn'
).
click
expect
(
page
).
to
have_css
(
'.is-active'
,
text:
'Owned by me'
)
expect
(
page
).
to
have_content
(
'Victorialand'
)
expect
(
page
).
not_to
have_content
(
'Treasure'
)
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