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
3ad90db5
Commit
3ad90db5
authored
Feb 27, 2020
by
lauraMon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds v-model to form and modifies tests
parent
4c37f05b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
app/assets/javascripts/error_tracking/components/error_tracking_list.vue
...scripts/error_tracking/components/error_tracking_list.vue
+1
-0
spec/frontend/error_tracking/components/error_tracking_list_spec.js
...end/error_tracking/components/error_tracking_list_spec.js
+2
-4
No files found.
app/assets/javascripts/error_tracking/components/error_tracking_list.vue
View file @
3ad90db5
...
...
@@ -236,6 +236,7 @@ export default {
</gl-dropdown>
<div
class=
"filtered-search-input-container flex-fill"
>
<gl-form-input
v-model=
"errorSearchQuery"
class=
"pl-2 filtered-search"
:disabled=
"loading"
:placeholder=
"__('Search or filter results…')"
...
...
spec/frontend/error_tracking/components/error_tracking_list_spec.js
View file @
3ad90db5
...
...
@@ -42,9 +42,6 @@ describe('ErrorTrackingList', () => {
...
stubChildren
(
ErrorTrackingList
),
...
stubs
,
},
data
()
{
return
{
errorSearchQuery
:
'
search
'
};
},
});
}
...
...
@@ -164,8 +161,9 @@ describe('ErrorTrackingList', () => {
});
it
(
'
it searches by query
'
,
()
=>
{
findSearchBox
().
vm
.
$emit
(
'
input
'
,
'
search
'
);
findSearchBox
().
trigger
(
'
keyup.enter
'
);
expect
(
actions
.
searchByQuery
.
mock
.
calls
[
0
][
1
]).
toEqual
(
wrapper
.
vm
.
errorSearchQuery
);
expect
(
actions
.
searchByQuery
.
mock
.
calls
[
0
][
1
]).
toEqual
(
'
search
'
);
});
it
(
'
it sorts by fields
'
,
()
=>
{
...
...
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