BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
d701b39d
Commit
d701b39d
authored
Mar 08, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed up boards filter spec due to CSS classes changing
Also fixed issue with Vue resource encoding + in search term
parent
9ef84008
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
list.js
app/assets/javascripts/boards/models/list.js
+2
-1
boards_spec.rb
spec/features/boards/boards_spec.rb
+6
-8
No files found.
app/assets/javascripts/boards/models/list.js
View file @
d701b39d
...
...
@@ -70,7 +70,8 @@ class List {
const
paramSplit
=
filterParam
.
split
(
'='
);
const
paramKeyNormalized
=
paramSplit
[
0
].
replace
(
'[]'
,
''
);
const
isArray
=
paramSplit
[
0
].
indexOf
(
'[]'
);
const
value
=
decodeURIComponent
(
paramSplit
[
1
]);
let
value
=
decodeURIComponent
(
paramSplit
[
1
]);
value
=
value
.
replace
(
/
\+
/g
,
' '
);
if
(
isArray
>=
0
)
{
if
(
!
data
[
paramKeyNormalized
])
{
...
...
spec/features/boards/boards_spec.rb
View file @
d701b39d
...
...
@@ -29,7 +29,7 @@ describe 'Issue Boards', feature: true, js: true do
end
it
'shows tooltip on add issues button'
do
button
=
page
.
find
(
'.
issue-boards-search
button'
,
text:
'Add issues'
)
button
=
page
.
find
(
'.
filter-dropdown-container
button'
,
text:
'Add issues'
)
expect
(
button
[
:"data-original-title"
]).
to
eq
(
"Please add a list to your board first"
)
end
...
...
@@ -115,9 +115,8 @@ describe 'Issue Boards', feature: true, js: true do
end
it
'search done list'
do
page
.
within
(
'#js-boards-search'
)
do
find
(
'.form-control'
).
set
(
issue8
.
title
)
end
find
(
'.filtered-search'
).
set
(
issue8
.
title
)
find
(
'.filtered-search'
).
native
.
send_keys
(
:enter
)
wait_for_vue_resource
...
...
@@ -127,9 +126,8 @@ describe 'Issue Boards', feature: true, js: true do
end
it
'search list'
do
page
.
within
(
'#js-boards-search'
)
do
find
(
'.form-control'
).
set
(
issue5
.
title
)
end
find
(
'.filtered-search'
).
set
(
issue5
.
title
)
find
(
'.filtered-search'
).
native
.
send_keys
(
:enter
)
wait_for_vue_resource
...
...
@@ -333,7 +331,7 @@ describe 'Issue Boards', feature: true, js: true do
wait_for_vue_resource
expect
(
find
(
'.issue-boards-search'
)).
to
have_selector
(
'
.open'
)
expect
(
page
).
to
have_css
(
'#js-add-list
.open'
)
end
it
'creates new list from a new label'
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