mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
* Use hosts instead of url for elasticsearch. * Adds jest integration tests to run in xpack intake. * Reverting the exclusion of throwing errors in tests. * Strange test that seems to fail without console error exception being thrown. * Fix issues with wrong props for EuiInMemoryTable. * Removes the masking of console errors in tests.
This commit is contained in:
parent
e757cb3e1c
commit
34ba3e7196
6 changed files with 129 additions and 35 deletions
|
@ -52,7 +52,6 @@ export default {
|
|||
'<rootDir>/src/dev/jest/setup/babel_polyfill.js',
|
||||
'<rootDir>/src/dev/jest/setup/polyfills.js',
|
||||
'<rootDir>/src/dev/jest/setup/enzyme.js',
|
||||
'<rootDir>/src/dev/jest/setup/throw_on_console_error.js',
|
||||
],
|
||||
coverageDirectory: '<rootDir>/target/jest-coverage',
|
||||
coverageReporters: [
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
// Fail if a test ends up `console.error`-ing, e.g. if React logs because of a
|
||||
// failed prop types check.
|
||||
console.error = message => {
|
||||
throw new Error(message);
|
||||
};
|
|
@ -72,7 +72,7 @@ exports[`Relationships should render dashboards normally 1`] = `
|
|||
Array [
|
||||
Object {
|
||||
"render": [Function],
|
||||
"width": 24,
|
||||
"width": "24px",
|
||||
},
|
||||
Object {
|
||||
"field": "title",
|
||||
|
@ -197,9 +197,129 @@ exports[`Relationships should render index patterns normally 1`] = `
|
|||
</EuiTitle>
|
||||
</EuiFlyoutHeader>
|
||||
<EuiFlyoutBody>
|
||||
<EuiLoadingKibana
|
||||
size="xl"
|
||||
/>
|
||||
<EuiDescriptionList
|
||||
align="left"
|
||||
compressed={false}
|
||||
textStyle="normal"
|
||||
type="row"
|
||||
>
|
||||
<EuiDescriptionListTitle
|
||||
style={
|
||||
Object {
|
||||
"marginBottom": "1rem",
|
||||
}
|
||||
}
|
||||
>
|
||||
<EuiCallOut
|
||||
color="warning"
|
||||
size="m"
|
||||
title={
|
||||
<FormattedMessage
|
||||
defaultMessage="Warning"
|
||||
id="kbn.management.objects.objectsTable.relationships.warningTitle"
|
||||
values={Object {}}
|
||||
/>
|
||||
}
|
||||
>
|
||||
<p />
|
||||
</EuiCallOut>
|
||||
</EuiDescriptionListTitle>
|
||||
<EuiInMemoryTable
|
||||
columns={
|
||||
Array [
|
||||
Object {
|
||||
"render": [Function],
|
||||
"width": "24px",
|
||||
},
|
||||
Object {
|
||||
"field": "title",
|
||||
"name": "Title",
|
||||
"render": [Function],
|
||||
},
|
||||
Object {
|
||||
"actions": Array [
|
||||
Object {
|
||||
"description": "View this saved object within Kibana",
|
||||
"icon": "eye",
|
||||
"name": "In app",
|
||||
"onClick": [Function],
|
||||
},
|
||||
],
|
||||
"name": "Actions",
|
||||
},
|
||||
]
|
||||
}
|
||||
executeQueryOptions={Object {}}
|
||||
items={
|
||||
Array [
|
||||
Object {
|
||||
"id": "1",
|
||||
},
|
||||
]
|
||||
}
|
||||
pagination={true}
|
||||
responsive={true}
|
||||
sorting={false}
|
||||
/>
|
||||
<EuiDescriptionListTitle
|
||||
style={
|
||||
Object {
|
||||
"marginBottom": "1rem",
|
||||
}
|
||||
}
|
||||
>
|
||||
<EuiCallOut
|
||||
color="warning"
|
||||
size="m"
|
||||
title={
|
||||
<FormattedMessage
|
||||
defaultMessage="Warning"
|
||||
id="kbn.management.objects.objectsTable.relationships.warningTitle"
|
||||
values={Object {}}
|
||||
/>
|
||||
}
|
||||
>
|
||||
<p />
|
||||
</EuiCallOut>
|
||||
</EuiDescriptionListTitle>
|
||||
<EuiInMemoryTable
|
||||
columns={
|
||||
Array [
|
||||
Object {
|
||||
"render": [Function],
|
||||
"width": "24px",
|
||||
},
|
||||
Object {
|
||||
"field": "title",
|
||||
"name": "Title",
|
||||
"render": [Function],
|
||||
},
|
||||
Object {
|
||||
"actions": Array [
|
||||
Object {
|
||||
"description": "View this saved object within Kibana",
|
||||
"icon": "eye",
|
||||
"name": "In app",
|
||||
"onClick": [Function],
|
||||
},
|
||||
],
|
||||
"name": "Actions",
|
||||
},
|
||||
]
|
||||
}
|
||||
executeQueryOptions={Object {}}
|
||||
items={
|
||||
Array [
|
||||
Object {
|
||||
"id": "2",
|
||||
},
|
||||
]
|
||||
}
|
||||
pagination={true}
|
||||
responsive={true}
|
||||
sorting={false}
|
||||
/>
|
||||
</EuiDescriptionList>
|
||||
</EuiFlyoutBody>
|
||||
</EuiFlyout>
|
||||
`;
|
||||
|
@ -276,7 +396,7 @@ exports[`Relationships should render searches normally 1`] = `
|
|||
Array [
|
||||
Object {
|
||||
"render": [Function],
|
||||
"width": 24,
|
||||
"width": "24px",
|
||||
},
|
||||
Object {
|
||||
"field": "title",
|
||||
|
@ -340,7 +460,7 @@ exports[`Relationships should render searches normally 1`] = `
|
|||
Array [
|
||||
Object {
|
||||
"render": [Function],
|
||||
"width": 24,
|
||||
"width": "24px",
|
||||
},
|
||||
Object {
|
||||
"field": "title",
|
||||
|
@ -449,7 +569,7 @@ exports[`Relationships should render visualizations normally 1`] = `
|
|||
Array [
|
||||
Object {
|
||||
"render": [Function],
|
||||
"width": 24,
|
||||
"width": "24px",
|
||||
},
|
||||
Object {
|
||||
"field": "title",
|
||||
|
|
|
@ -227,7 +227,7 @@ class RelationshipsUI extends Component {
|
|||
items={list}
|
||||
columns={[
|
||||
{
|
||||
width: 24,
|
||||
width: '24px',
|
||||
render: () => (
|
||||
<EuiToolTip
|
||||
position="top"
|
||||
|
|
|
@ -34,4 +34,4 @@ echo " -> Running jest integration tests"
|
|||
cd "$XPACK_DIR"
|
||||
node scripts/jest_integration --ci --no-cache --verbose
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
|
|
|
@ -26,7 +26,6 @@ export default {
|
|||
'<rootDir>/../src/dev/jest/setup/babel_polyfill.js',
|
||||
'<rootDir>/../src/dev/jest/setup/polyfills.js',
|
||||
'<rootDir>/../src/dev/jest/setup/enzyme.js',
|
||||
'<rootDir>/../src/dev/jest/setup/throw_on_console_error.js',
|
||||
],
|
||||
coverageDirectory: '<rootDir>/../target/jest-coverage',
|
||||
coverageReporters: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue