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
f1dc6b57
Commit
f1dc6b57
authored
Jun 06, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spinach test
parent
b6bded14
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
features/project/issues/issues.feature
features/project/issues/issues.feature
+2
-0
features/project/merge_requests.feature
features/project/merge_requests.feature
+2
-0
features/steps/project/issues/issues.rb
features/steps/project/issues/issues.rb
+2
-2
features/steps/project/merge_requests.rb
features/steps/project/merge_requests.rb
+2
-4
No files found.
features/project/issues/issues.feature
View file @
f1dc6b57
...
@@ -12,11 +12,13 @@ Feature: Project Issues
...
@@ -12,11 +12,13 @@ Feature: Project Issues
Given
I should see
"Release 0.4"
in issues
Given
I should see
"Release 0.4"
in issues
And
I should not see
"Release 0.3"
in issues
And
I should not see
"Release 0.3"
in issues
@javascript
Scenario
:
I
should see closed issues
Scenario
:
I
should see closed issues
Given
I click link
"Closed"
Given
I click link
"Closed"
Then
I should see
"Release 0.3"
in issues
Then
I should see
"Release 0.3"
in issues
And
I should not see
"Release 0.4"
in issues
And
I should not see
"Release 0.4"
in issues
@javascript
Scenario
:
I
should see all issues
Scenario
:
I
should see all issues
Given
I click link
"All"
Given
I click link
"All"
Then
I should see
"Release 0.3"
in issues
Then
I should see
"Release 0.3"
in issues
...
...
features/project/merge_requests.feature
View file @
f1dc6b57
...
@@ -38,11 +38,13 @@ Feature: Project Merge Requests
...
@@ -38,11 +38,13 @@ Feature: Project Merge Requests
When
I visit merge request page
"Bug NS-08"
When
I visit merge request page
"Bug NS-08"
Then
I should see the diverged commits count
Then
I should see the diverged commits count
@javascript
Scenario
:
I
should see rejected merge requests
Scenario
:
I
should see rejected merge requests
Given
I click link
"Closed"
Given
I click link
"Closed"
Then
I should see
"Feature NS-03"
in merge requests
Then
I should see
"Feature NS-03"
in merge requests
And
I should not see
"Bug NS-04"
in merge requests
And
I should not see
"Bug NS-04"
in merge requests
@javascript
Scenario
:
I
should see all merge requests
Scenario
:
I
should see all merge requests
Given
I click link
"All"
Given
I click link
"All"
Then
I should see
"Feature NS-03"
in merge requests
Then
I should see
"Feature NS-03"
in merge requests
...
...
features/steps/project/issues/issues.rb
View file @
f1dc6b57
...
@@ -28,7 +28,7 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
...
@@ -28,7 +28,7 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
end
end
step
'I click link "Closed"'
do
step
'I click link "Closed"'
do
find
(
'.issues-state-filters
a'
,
text:
"Closed"
).
click
find
(
'.issues-state-filters
.state-closed span'
,
text:
'Closed'
).
click
end
end
step
'I click button "Unsubscribe"'
do
step
'I click button "Unsubscribe"'
do
...
@@ -44,7 +44,7 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
...
@@ -44,7 +44,7 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
end
end
step
'I click link "All"'
do
step
'I click link "All"'
do
click_link
"All"
find
(
'.issues-state-filters .state-all span'
,
text:
'All'
).
click
# Waits for load
# Waits for load
expect
(
find
(
'.issues-state-filters > .active'
)).
to
have_content
'All'
expect
(
find
(
'.issues-state-filters > .active'
)).
to
have_content
'All'
end
end
...
...
features/steps/project/merge_requests.rb
View file @
f1dc6b57
...
@@ -26,7 +26,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
...
@@ -26,7 +26,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end
end
step
'I click link "All"'
do
step
'I click link "All"'
do
click_link
"All"
find
(
'.issues-state-filters .state-all span'
,
text:
'All'
).
click
# Waits for load
# Waits for load
expect
(
find
(
'.issues-state-filters > .active'
)).
to
have_content
'All'
expect
(
find
(
'.issues-state-filters > .active'
)).
to
have_content
'All'
end
end
...
@@ -36,9 +36,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
...
@@ -36,9 +36,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end
end
step
'I click link "Closed"'
do
step
'I click link "Closed"'
do
page
.
within
(
'.issues-state-filters'
)
do
find
(
'.issues-state-filters .state-closed span'
,
text:
'Closed'
).
click
click_link
"Closed"
end
end
end
step
'I should see merge request "Wiki Feature"'
do
step
'I should see merge request "Wiki Feature"'
do
...
...
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