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
5fde067a
Commit
5fde067a
authored
Dec 10, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature test for setting weight of issue
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
310db449
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
features/project/issues/weight.feature
features/project/issues/weight.feature
+10
-0
features/steps/project/issues/weight.rb
features/steps/project/issues/weight.rb
+25
-0
No files found.
features/project/issues/weight.feature
0 → 100644
View file @
5fde067a
Feature
:
Project Issues Weight
Background
:
Given
I sign in as a user
And
I own project
"Shop"
Given
I visit project
"Shop"
issues page
Scenario
:
I
should see labels list
Given
I click link
"New Issue"
And
I submit new issue
"500 error on profile"
with weight
Then
I should see issue
"500 error on profile"
with weight
features/steps/project/issues/weight.rb
0 → 100644
View file @
5fde067a
class
Spinach::Features::ProjectIssuesWeight
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedProject
include
SharedPaths
step
'I click link "New Issue"'
do
click_link
"New Issue"
end
step
'I submit new issue "500 error on profile" with weight'
do
fill_in
"issue_title"
,
with:
"500 error on profile"
fill_in
"issue_weight"
,
with:
7
click_button
"Submit new issue"
end
step
'I should see issue "500 error on profile" with weight'
do
issue
=
Issue
.
find_by
(
title:
"500 error on profile"
)
page
.
within
'.weight'
do
expect
(
page
).
to
have_content
'7'
end
expect
(
page
).
to
have_content
issue
.
title
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