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
Jérome Perrin
gitlab-ce
Commits
5913f744
Commit
5913f744
authored
Sep 11, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clickable labels feature test
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
350f5574
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
features/project/issues/issues.feature
features/project/issues/issues.feature
+7
-0
features/project/issues/labels.feature
features/project/issues/labels.feature
+0
-1
features/steps/project/issues.rb
features/steps/project/issues.rb
+12
-0
No files found.
features/project/issues/issues.feature
View file @
5913f744
...
@@ -119,3 +119,10 @@ Feature: Project Issues
...
@@ -119,3 +119,10 @@ Feature: Project Issues
Given
I click link
"New Issue"
Given
I click link
"New Issue"
And
I submit new issue
"500 error on profile"
And
I submit new issue
"500 error on profile"
Then
I should see issue
"500 error on profile"
Then
I should see issue
"500 error on profile"
Scenario
:
Clickable labels
Given
issue 'Release 0.4' has label 'bug'
And
I visit project
"Shop"
issues page
When
I click label 'bug'
And
I should see
"Release 0.4"
in issues
And
I should not see
"Tweet control"
in issues
features/project/issues/labels.feature
View file @
5913f744
...
@@ -45,4 +45,3 @@ Feature: Project Labels
...
@@ -45,4 +45,3 @@ Feature: Project Labels
And
I visit project
"Forum"
new label page
And
I visit project
"Forum"
new label page
When
I submit new label 'bug'
When
I submit new label 'bug'
Then
I should see label 'bug'
Then
I should see label 'bug'
features/steps/project/issues.rb
View file @
5913f744
...
@@ -218,6 +218,18 @@ class ProjectIssues < Spinach::FeatureSteps
...
@@ -218,6 +218,18 @@ class ProjectIssues < Spinach::FeatureSteps
page
.
should_not
have_content
'Bugfix1'
page
.
should_not
have_content
'Bugfix1'
end
end
step
'issue \'Release 0.4\' has label \'bug\''
do
label
=
project
.
labels
.
create!
(
name:
'bug'
,
color:
'#990000'
)
issue
=
Issue
.
find_by!
(
title:
'Release 0.4'
)
issue
.
labels
<<
label
end
step
'I click label \'bug\''
do
within
".issues-list"
do
click_link
'bug'
end
end
def
filter_issue
(
text
)
def
filter_issue
(
text
)
fill_in
'issue_search'
,
with:
text
fill_in
'issue_search'
,
with:
text
...
...
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