-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* handle EuiSearchBar query parse failures * I18n parse failure messages * review updates * more cleanup on settings search.test
- Loading branch information
Showing
6 changed files
with
221 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
103 changes: 53 additions & 50 deletions
103
...a/public/management/sections/settings/components/search/__snapshots__/search.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,61 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Search should render normally 1`] = ` | ||
<EuiSearchBar | ||
box={ | ||
Object { | ||
"aria-label": "Search advanced settings", | ||
"incremental": true, | ||
} | ||
} | ||
filters={ | ||
Array [ | ||
<React.Fragment> | ||
<EuiSearchBar | ||
box={ | ||
Object { | ||
"field": "category", | ||
"multiSelect": "or", | ||
"name": "Category", | ||
"options": Array [ | ||
Object { | ||
"name": "General", | ||
"value": "general", | ||
}, | ||
Object { | ||
"name": "Dashboard", | ||
"value": "dashboard", | ||
}, | ||
Object { | ||
"name": "HiddenCategory", | ||
"value": "hiddenCategory", | ||
}, | ||
Object { | ||
"name": "X-pack", | ||
"value": "x-pack", | ||
"aria-label": "Search advanced settings", | ||
"data-test-subj": "settingsSearchBar", | ||
"incremental": true, | ||
} | ||
} | ||
filters={ | ||
Array [ | ||
Object { | ||
"field": "category", | ||
"multiSelect": "or", | ||
"name": "Category", | ||
"options": Array [ | ||
Object { | ||
"name": "General", | ||
"value": "general", | ||
}, | ||
Object { | ||
"name": "Dashboard", | ||
"value": "dashboard", | ||
}, | ||
Object { | ||
"name": "HiddenCategory", | ||
"value": "hiddenCategory", | ||
}, | ||
Object { | ||
"name": "X-pack", | ||
"value": "x-pack", | ||
}, | ||
], | ||
"type": "field_value_selection", | ||
}, | ||
] | ||
} | ||
onChange={[Function]} | ||
query={ | ||
Query { | ||
"ast": _AST { | ||
"_clauses": Array [], | ||
"_indexedClauses": Object { | ||
"field": Object {}, | ||
"is": Object {}, | ||
"term": Array [], | ||
}, | ||
], | ||
"type": "field_value_selection", | ||
}, | ||
] | ||
} | ||
onChange={[Function]} | ||
query={ | ||
Query { | ||
"ast": _AST { | ||
"_clauses": Array [], | ||
"_indexedClauses": Object { | ||
"field": Object {}, | ||
"is": Object {}, | ||
"term": Array [], | ||
}, | ||
}, | ||
"syntax": Object { | ||
"parse": [Function], | ||
"print": [Function], | ||
}, | ||
"text": "", | ||
"syntax": Object { | ||
"parse": [Function], | ||
"print": [Function], | ||
}, | ||
"text": "", | ||
} | ||
} | ||
} | ||
/> | ||
/> | ||
</React.Fragment> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.