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
Boxiang Sun
gitlab-ce
Commits
833bc305
Commit
833bc305
authored
Jul 31, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for createing issue with labels
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
0f474887
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
features/project/issues/issues.feature
features/project/issues/issues.feature
+7
-0
features/steps/project/issues.rb
features/steps/project/issues.rb
+12
-0
No files found.
features/project/issues/issues.feature
View file @
833bc305
...
...
@@ -30,6 +30,13 @@ Feature: Project Issues
And
I submit new issue
"500 error on profile"
Then
I should see issue
"500 error on profile"
Scenario
:
I
submit new unassigned issue with labels
Given project "Shop" has labels
:
"bug",
"feature",
"enhancement"
And
I click link
"New Issue"
And
I submit new issue
"500 error on profile"
with label 'bug'
Then
I should see issue
"500 error on profile"
And
I should see label 'bug' with issue
@javascript
Scenario
:
I
comment issue
Given
I visit issue page
"Release 0.4"
...
...
features/steps/project/issues.rb
View file @
833bc305
...
...
@@ -50,10 +50,22 @@ class ProjectIssues < Spinach::FeatureSteps
click_button
"Submit new issue"
end
step
'I submit new issue "500 error on profile" with label \'bug\''
do
fill_in
"issue_title"
,
with:
"500 error on profile"
select
'bug'
,
from:
"Labels"
click_button
"Submit new issue"
end
Given
'I click link "500 error on profile"'
do
click_link
"500 error on profile"
end
step
'I should see label \'bug\' with issue'
do
within
'.issue-show-labels'
do
page
.
should
have_content
'bug'
end
end
Then
'I should see issue "500 error on profile"'
do
issue
=
Issue
.
find_by
(
title:
"500 error on profile"
)
page
.
should
have_content
issue
.
title
...
...
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