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
45e5d121
Commit
45e5d121
authored
Apr 26, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed spinach tests
Removed a spinach test as it wasn't actually testing what it said it should be
parent
3c077fad
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
features/group/milestones.feature
features/group/milestones.feature
+1
-0
features/project/milestone.feature
features/project/milestone.feature
+0
-8
features/steps/group/milestones.rb
features/steps/group/milestones.rb
+3
-0
features/steps/project/project_milestone.rb
features/steps/project/project_milestone.rb
+3
-0
No files found.
features/group/milestones.feature
View file @
45e5d121
...
...
@@ -38,6 +38,7 @@ Feature: Group Milestones
And
I should see the
"feature"
label
And
I should see the project name in the Issue row
@javascript
Scenario
:
I
should see the Labels tab
Given
Group has projects with milestones
When
I visit group
"Owned"
page
...
...
features/project/milestone.feature
View file @
45e5d121
...
...
@@ -7,14 +7,6 @@ Feature: Project Milestone
And milestone has issue "Bugfix1" with labels
:
"bug",
"feature"
And milestone has issue "Bugfix2" with labels
:
"bug",
"enhancement"
@javascript
Scenario
:
Listing issues from issues tab
Given
I visit project
"Shop"
milestones page
And
I click link
"v2.2"
Then
I should see the labels
"bug"
,
"enhancement"
and
"feature"
And
I should see the
"bug"
label listed only once
@javascript
Scenario
:
Listing labels from labels tab
Given
I visit project
"Shop"
milestones page
...
...
features/steps/group/milestones.rb
View file @
45e5d121
class
Spinach::Features::GroupMilestones
<
Spinach
::
FeatureSteps
include
WaitForAjax
include
SharedAuthentication
include
SharedPaths
include
SharedGroup
...
...
@@ -90,6 +91,8 @@ class Spinach::Features::GroupMilestones < Spinach::FeatureSteps
end
step
'I should see the list of labels'
do
wait_for_ajax
page
.
within
(
'#tab-labels'
)
do
expect
(
page
).
to
have_content
'bug'
expect
(
page
).
to
have_content
'feature'
...
...
features/steps/project/project_milestone.rb
View file @
45e5d121
...
...
@@ -2,6 +2,7 @@ class Spinach::Features::ProjectMilestone < Spinach::FeatureSteps
include
SharedAuthentication
include
SharedProject
include
SharedPaths
include
WaitForAjax
step
'milestone has issue "Bugfix1" with labels: "bug", "feature"'
do
project
=
Project
.
find_by
(
name:
"Shop"
)
...
...
@@ -34,6 +35,8 @@ class Spinach::Features::ProjectMilestone < Spinach::FeatureSteps
end
step
'I should see the labels "bug", "enhancement" and "feature"'
do
wait_for_ajax
page
.
within
(
'#tab-issues'
)
do
expect
(
page
).
to
have_content
'bug'
expect
(
page
).
to
have_content
'enhancement'
...
...
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