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
Léo-Paul Géneau
gitlab-ce
Commits
21781043
Commit
21781043
authored
Jul 29, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better cucumber coverage for dashboard
parent
2cf5a9ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
0 deletions
+84
-0
features/dashboard/issues.feature
features/dashboard/issues.feature
+8
-0
features/dashboard/merge_requests.feature
features/dashboard/merge_requests.feature
+8
-0
features/step_definitions/dashboard_steps.rb
features/step_definitions/dashboard_steps.rb
+68
-0
No files found.
features/dashboard/issues.feature
0 → 100644
View file @
21781043
Feature
:
Dashboard Issues
Background
:
Given
I signin as a user
And
I have assigned issues
And
I visit dashboard issues page
Scenario
:
I
should see issues list
Then
I should see issues assigned to me
features/dashboard/merge_requests.feature
0 → 100644
View file @
21781043
Feature
:
Dashboard MR
Background
:
Given
I signin as a user
And
I have authored merge requests
And
I visit dashboard merge requests page
Scenario
:
I
should see projects list
Then
I should see my merge requests
features/step_definitions/dashboard_steps.rb
View file @
21781043
...
...
@@ -65,3 +65,71 @@ Given /^I search for "(.*?)"$/ do |arg1|
fill_in
"dashboard_search"
,
:with
=>
arg1
click_button
"Search"
end
Given
/^I visit dashboard issues page$/
do
visit
dashboard_issues_path
end
Then
/^I should see issues assigned to me$/
do
issues
=
@user
.
issues
issues
.
each
do
|
issue
|
page
.
should
have_content
(
issue
.
title
[
0
..
10
])
page
.
should
have_content
(
issue
.
project
.
name
)
end
end
Given
/^I visit dashboard merge requests page$/
do
visit
dashboard_merge_requests_path
end
Then
/^I should see my merge requests$/
do
merge_requests
=
@user
.
merge_requests
merge_requests
.
each
do
|
mr
|
page
.
should
have_content
(
mr
.
title
[
0
..
10
])
page
.
should
have_content
(
mr
.
project
.
name
)
end
end
Given
/^I have assigned issues$/
do
project1
=
Factory
:project
,
:path
=>
"project1"
,
:code
=>
"TEST1"
project2
=
Factory
:project
,
:path
=>
"project2"
,
:code
=>
"TEST2"
project1
.
add_access
(
@user
,
:read
,
:write
)
project2
.
add_access
(
@user
,
:read
,
:write
)
issue1
=
Factory
:issue
,
:author
=>
@user
,
:assignee
=>
@user
,
:project
=>
project1
issue2
=
Factory
:issue
,
:author
=>
@user
,
:assignee
=>
@user
,
:project
=>
project2
end
Given
/^I have authored merge requests$/
do
project1
=
Factory
:project
,
:path
=>
"project1"
,
:code
=>
"TEST1"
project2
=
Factory
:project
,
:path
=>
"project2"
,
:code
=>
"TEST2"
project1
.
add_access
(
@user
,
:read
,
:write
)
project2
.
add_access
(
@user
,
:read
,
:write
)
merge_request1
=
Factory
:merge_request
,
:author
=>
@user
,
:project
=>
project1
merge_request2
=
Factory
:merge_request
,
:author
=>
@user
,
:project
=>
project2
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