BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
c0ce4986
Commit
c0ce4986
authored
Apr 18, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests
parent
9bd29a77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
dashboard_filter_spec.rb
spec/features/dashboard_filter_spec.rb
+30
-0
No files found.
spec/features/dashboard_filter_spec.rb
0 → 100644
View file @
c0ce4986
require
'spec_helper'
describe
"Dashboard projects filters"
,
feature:
true
,
js:
true
do
context
'filtering personal projects'
do
before
do
user
=
create
(
:user
)
project
=
create
(
:project
,
name:
"Victorialand"
,
namespace:
user
.
namespace
)
project
.
team
<<
[
user
,
:master
]
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
def
open_filter_dropdown
find
(
'button.dropdown-toggle.btn'
).
click
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