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
fc568ffc
Commit
fc568ffc
authored
Apr 02, 2018
by
blackst0ne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace the `project/issues/weight.feature` spinach test with an rspec analog
parent
512a1241
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
44 deletions
+42
-44
ee/changelogs/unreleased/blackst0ne-replace-spinach-project-issues-weight-feature.yml
...ckst0ne-replace-spinach-project-issues-weight-feature.yml
+5
-0
ee/spec/features/projects/issues/user_creates_issue_spec.rb
ee/spec/features/projects/issues/user_creates_issue_spec.rb
+37
-0
features/project/issues/weight.feature
features/project/issues/weight.feature
+0
-11
features/steps/project/issues/weight.rb
features/steps/project/issues/weight.rb
+0
-33
No files found.
ee/changelogs/unreleased/blackst0ne-replace-spinach-project-issues-weight-feature.yml
0 → 100644
View file @
fc568ffc
---
title
:
Replace the `project/issues/weight.feature` spinach test with an rspec analog
merge_request
:
5194
author
:
blackst0ne
type
:
other
ee/spec/features/projects/issues/user_creates_issue_spec.rb
0 → 100644
View file @
fc568ffc
require
"spec_helper"
describe
"User creates issue"
,
:js
do
let
(
:project
)
{
create
(
:project_empty_repo
,
:public
)
}
let
(
:user
)
{
create
(
:user
)
}
before
do
stub_licensed_features
(
issue_weights:
true
)
project
.
add_developer
(
user
)
sign_in
(
user
)
visit
(
new_project_issue_path
(
project
))
end
context
"with weight set"
do
it
"creates issue"
do
issue_title
=
"500 error on profile"
weight
=
"7"
fill_in
(
"Title"
,
with:
issue_title
)
click_button
(
"Weight"
)
page
.
within
(
".dropdown-menu-weight"
)
do
click_link
(
weight
)
end
click_button
(
"Submit issue"
)
page
.
within
(
".weight"
)
do
expect
(
page
).
to
have_content
(
weight
)
end
expect
(
page
).
to
have_content
(
issue_title
)
end
end
end
features/project/issues/weight.feature
deleted
100644 → 0
View file @
512a1241
Feature
:
Project Issues Weight
Background
:
Given
I sign in as a user
And
I own project
"Shop"
Given
I visit project
"Shop"
issues page
@javascript
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
deleted
100644 → 0
View file @
512a1241
class
Spinach::Features::ProjectIssuesWeight
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedProject
include
SharedPaths
step
'I click link "New Issue"'
do
within
'.row'
do
click_link
"New issue"
end
end
step
'I submit new issue "500 error on profile" with weight'
do
fill_in
"issue_title"
,
with:
"500 error on profile"
click_button
'Weight'
page
.
within
'.dropdown-menu-weight'
do
click_link
'7'
end
click_button
"Submit 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