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
657ac981
Commit
657ac981
authored
Dec 15, 2016
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spinach tests
parent
6662f034
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
85 deletions
+1
-85
app/assets/javascripts/dispatcher.js.es6
app/assets/javascripts/dispatcher.js.es6
+1
-1
features/project/issues/filter_labels.feature
features/project/issues/filter_labels.feature
+0
-28
features/project/issues/issues.feature
features/project/issues/issues.feature
+0
-56
No files found.
app/assets/javascripts/dispatcher.js.es6
View file @
657ac981
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
break;
break;
case 'projects:merge_requests:index':
case 'projects:merge_requests:index':
case 'projects:issues:index':
case 'projects:issues:index':
if(gl.FilteredSearchManager) {
if(
document.querySelector('.filtered-search') &&
gl.FilteredSearchManager) {
new gl.FilteredSearchManager();
new gl.FilteredSearchManager();
}
}
Issuable.init();
Issuable.init();
...
...
features/project/issues/filter_labels.feature
deleted
100644 → 0
View file @
6662f034
@project_issues
Feature
:
Project Issues Filter Labels
Background
:
Given
I sign in as a user
And
I own project
"Shop"
And project "Shop" has labels
:
"bug",
"feature",
"enhancement"
And project "Shop" has issue "Bugfix1" with labels
:
"bug",
"feature"
And project "Shop" has issue "Bugfix2" with labels
:
"bug",
"enhancement"
And project "Shop" has issue "Feature1" with labels
:
"feature"
Given
I visit project
"Shop"
issues page
@javascript
Scenario
:
I
filter by one label
Given
I click link
"bug"
And
I click
"dropdown close button"
Then
I should see
"Bugfix1"
in issues list
And
I should see
"Bugfix2"
in issues list
And
I should not see
"Feature1"
in issues list
# TODO: make labels filter works according to this scanario
# right now it looks for label 1 OR label 2. Old behaviour (this test) was
# all issues that have both label 1 AND label 2
#Scenario: I filter by two labels
#Given I click link "bug"
#And I click link "feature"
#Then I should see "Bugfix1" in issues list
#And I should not see "Bugfix2" in issues list
#And I should not see "Feature1" in issues list
features/project/issues/issues.feature
View file @
657ac981
...
@@ -26,12 +26,6 @@ Feature: Project Issues
...
@@ -26,12 +26,6 @@ Feature: Project Issues
Given
I click link
"Release 0.4"
Given
I click link
"Release 0.4"
Then
I should see issue
"Release 0.4"
Then
I should see issue
"Release 0.4"
@javascript
Scenario
:
I
filter by author
Given
I add a user to project
"Shop"
And
I click
"author"
dropdown
Then
I see current user as the first user
Scenario
:
I
submit new unassigned issue
Scenario
:
I
submit new unassigned issue
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"
...
@@ -84,56 +78,6 @@ Feature: Project Issues
...
@@ -84,56 +78,6 @@ Feature: Project Issues
And
I sort the list by
"Least popular"
And
I sort the list by
"Least popular"
Then
The list should be sorted by
"Least popular"
Then
The list should be sorted by
"Least popular"
@javascript
Scenario
:
I
search issue
Given
I fill in issue search with
"Re"
Then
I should see
"Release 0.4"
in issues
And
I should not see
"Release 0.3"
in issues
And
I should not see
"Tweet control"
in issues
@javascript
Scenario
:
I
search issue that not exist
Given
I fill in issue search with
"Bu"
Then
I should not see
"Release 0.4"
in issues
And
I should not see
"Release 0.3"
in issues
@javascript
Scenario
:
I
search all issues
Given
I click link
"All"
And
I fill in issue search with
".3"
Then
I should see
"Release 0.3"
in issues
And
I should not see
"Release 0.4"
in issues
@javascript
Scenario
:
Search issues when search string exactly matches issue description
Given project 'Shop' has issue 'Bugfix1' with description
:
'Description
for
issue1'
And
I fill in issue search with 'Description for issue1'
Then
I should see 'Bugfix1' in issues
And
I should not see
"Release 0.4"
in issues
And
I should not see
"Release 0.3"
in issues
And
I should not see
"Tweet control"
in issues
@javascript
Scenario
:
Search issues when search string partially matches issue description
Given project 'Shop' has issue 'Bugfix1' with description
:
'Description
for
issue1'
And project 'Shop' has issue 'Feature1' with description
:
'Feature
submitted
for
issue1'
And
I fill in issue search with 'issue1'
Then
I should see 'Feature1' in issues
Then
I should see 'Bugfix1' in issues
And
I should not see
"Release 0.4"
in issues
And
I should not see
"Release 0.3"
in issues
And
I should not see
"Tweet control"
in issues
@javascript
Scenario
:
Search issues when search string matches no issue description
Given project 'Shop' has issue 'Bugfix1' with description
:
'Description
for
issue1'
And
I fill in issue search with 'Rock and roll'
Then
I should not see 'Bugfix1' in issues
And
I should not see
"Release 0.4"
in issues
And
I should not see
"Release 0.3"
in issues
And
I should not see
"Tweet control"
in issues
# Markdown
# Markdown
Scenario
:
Headers inside the description should have ids generated for them.
Scenario
:
Headers inside the description should have ids generated for them.
...
...
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