parent
88ba5add6d
commit
e8cc6b423b
|
@ -197,138 +197,6 @@ exports[`SavedObjectsTable export should allow the user to choose when exporting
|
|||
</EuiModal>
|
||||
`;
|
||||
|
||||
exports[`SavedObjectsTable import should show the flyout 1`] = `
|
||||
<Flyout
|
||||
allowedTypes={
|
||||
Array [
|
||||
"index-pattern",
|
||||
"visualization",
|
||||
"dashboard",
|
||||
"search",
|
||||
]
|
||||
}
|
||||
close={[Function]}
|
||||
done={[Function]}
|
||||
http={
|
||||
Object {
|
||||
"addLoadingCountSource": [MockFunction],
|
||||
"anonymousPaths": Object {
|
||||
"isAnonymous": [MockFunction],
|
||||
"register": [MockFunction],
|
||||
},
|
||||
"basePath": BasePath {
|
||||
"basePath": "",
|
||||
"get": [Function],
|
||||
"prepend": [Function],
|
||||
"remove": [Function],
|
||||
"serverBasePath": "",
|
||||
},
|
||||
"delete": [MockFunction],
|
||||
"fetch": [MockFunction],
|
||||
"get": [MockFunction],
|
||||
"getLoadingCount$": [MockFunction],
|
||||
"head": [MockFunction],
|
||||
"intercept": [MockFunction],
|
||||
"options": [MockFunction],
|
||||
"patch": [MockFunction],
|
||||
"post": [MockFunction],
|
||||
"put": [MockFunction],
|
||||
}
|
||||
}
|
||||
indexPatterns={
|
||||
Object {
|
||||
"clearCache": [MockFunction],
|
||||
"createField": [MockFunction],
|
||||
"createFieldList": [MockFunction],
|
||||
"ensureDefaultIndexPattern": [MockFunction],
|
||||
"get": [MockFunction],
|
||||
"make": [Function],
|
||||
}
|
||||
}
|
||||
overlays={
|
||||
Object {
|
||||
"banners": Object {
|
||||
"add": [MockFunction],
|
||||
"get$": [MockFunction],
|
||||
"getComponent": [MockFunction],
|
||||
"remove": [MockFunction],
|
||||
"replace": [MockFunction],
|
||||
},
|
||||
"openConfirm": [MockFunction],
|
||||
"openFlyout": [MockFunction],
|
||||
"openModal": [MockFunction],
|
||||
}
|
||||
}
|
||||
search={
|
||||
Object {
|
||||
"__LEGACY": Object {
|
||||
"esClient": Object {
|
||||
"msearch": [MockFunction],
|
||||
"search": [MockFunction],
|
||||
},
|
||||
},
|
||||
"aggs": Object {
|
||||
"calculateAutoTimeExpression": [Function],
|
||||
"createAggConfigs": [MockFunction],
|
||||
"types": Object {
|
||||
"get": [Function],
|
||||
"getAll": [Function],
|
||||
"getBuckets": [Function],
|
||||
"getMetrics": [Function],
|
||||
},
|
||||
},
|
||||
"getSearchStrategy": [MockFunction],
|
||||
"search": [MockFunction],
|
||||
"searchSource": Object {
|
||||
"create": [MockFunction],
|
||||
"createEmpty": [MockFunction],
|
||||
},
|
||||
"setInterceptor": [MockFunction],
|
||||
}
|
||||
}
|
||||
serviceRegistry={
|
||||
Object {
|
||||
"all": [MockFunction],
|
||||
"get": [MockFunction],
|
||||
"register": [MockFunction],
|
||||
}
|
||||
}
|
||||
/>
|
||||
`;
|
||||
|
||||
exports[`SavedObjectsTable relationships should show the flyout 1`] = `
|
||||
<Relationships
|
||||
basePath={
|
||||
BasePath {
|
||||
"basePath": "",
|
||||
"get": [Function],
|
||||
"prepend": [Function],
|
||||
"remove": [Function],
|
||||
"serverBasePath": "",
|
||||
}
|
||||
}
|
||||
canGoInApp={[Function]}
|
||||
close={[Function]}
|
||||
getRelationships={[Function]}
|
||||
goInspectObject={[Function]}
|
||||
savedObject={
|
||||
Object {
|
||||
"id": "2",
|
||||
"meta": Object {
|
||||
"editUrl": "/management/kibana/objects/savedSearches/2",
|
||||
"icon": "search",
|
||||
"inAppUrl": Object {
|
||||
"path": "/discover/2",
|
||||
"uiCapabilitiesPath": "discover.show",
|
||||
},
|
||||
"title": "MySearch",
|
||||
},
|
||||
"type": "search",
|
||||
}
|
||||
}
|
||||
/>
|
||||
`;
|
||||
|
||||
exports[`SavedObjectsTable should render normally 1`] = `
|
||||
<EuiPageContent
|
||||
horizontalPosition="center"
|
||||
|
|
|
@ -397,7 +397,7 @@ describe('SavedObjectsTable', () => {
|
|||
component.instance().showImportFlyout();
|
||||
component.update();
|
||||
|
||||
expect(component.find(Flyout)).toMatchSnapshot();
|
||||
expect(component.find(Flyout).length).toBe(1);
|
||||
});
|
||||
|
||||
it('should hide the flyout', async () => {
|
||||
|
@ -452,7 +452,7 @@ describe('SavedObjectsTable', () => {
|
|||
} as SavedObjectWithMetadata);
|
||||
component.update();
|
||||
|
||||
expect(component.find(Relationships)).toMatchSnapshot();
|
||||
expect(component.find(Relationships).length).toBe(1);
|
||||
expect(component.state('relationshipObject')).toEqual({
|
||||
id: '2',
|
||||
type: 'search',
|
||||
|
|
Loading…
Reference in a new issue