From 9e3a033ab50f62041c97bce86140ca734a8131c1 Mon Sep 17 00:00:00 2001 From: Igor Zaytsev Date: Mon, 3 Feb 2020 21:53:16 -0500 Subject: [PATCH] Fixed snapshots --- .../__snapshots__/configuration.test.tsx.snap | 1 + .../__snapshots__/step1.test.tsx.snap | 3 +++ .../public/components/chart/chart_target.test.js | 15 +-------------- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/x-pack/legacy/plugins/monitoring/public/components/alerts/configuration/__snapshots__/configuration.test.tsx.snap b/x-pack/legacy/plugins/monitoring/public/components/alerts/configuration/__snapshots__/configuration.test.tsx.snap index f044e001700c5..429d19fbb887e 100644 --- a/x-pack/legacy/plugins/monitoring/public/components/alerts/configuration/__snapshots__/configuration.test.tsx.snap +++ b/x-pack/legacy/plugins/monitoring/public/components/alerts/configuration/__snapshots__/configuration.test.tsx.snap @@ -7,6 +7,7 @@ exports[`Configuration shallow view should render step 1 1`] = ` fullWidth={false} hasDividers={true} isInvalid={false} + isLoading={false} onChange={[Function]} options={ Array [ diff --git a/x-pack/legacy/plugins/monitoring/public/components/alerts/configuration/__snapshots__/step1.test.tsx.snap b/x-pack/legacy/plugins/monitoring/public/components/alerts/configuration/__snapshots__/step1.test.tsx.snap index fa03769ea3d09..94d951a94fe29 100644 --- a/x-pack/legacy/plugins/monitoring/public/components/alerts/configuration/__snapshots__/step1.test.tsx.snap +++ b/x-pack/legacy/plugins/monitoring/public/components/alerts/configuration/__snapshots__/step1.test.tsx.snap @@ -42,6 +42,7 @@ exports[`Step1 should render normally 1`] = ` fullWidth={false} hasDividers={true} isInvalid={false} + isLoading={false} onChange={[Function]} options={ Array [ @@ -135,6 +136,7 @@ exports[`Step1 testing should show a failed test error 1`] = ` fullWidth={false} hasDividers={true} isInvalid={false} + isLoading={false} onChange={[Function]} options={ Array [ @@ -220,6 +222,7 @@ exports[`Step1 testing should show a successful test 1`] = ` fullWidth={false} hasDividers={true} isInvalid={false} + isLoading={false} onChange={[Function]} options={ Array [ diff --git a/x-pack/legacy/plugins/monitoring/public/components/chart/chart_target.test.js b/x-pack/legacy/plugins/monitoring/public/components/chart/chart_target.test.js index 60ae7b2ffb369..9d20981b6b7f0 100644 --- a/x-pack/legacy/plugins/monitoring/public/components/chart/chart_target.test.js +++ b/x-pack/legacy/plugins/monitoring/public/components/chart/chart_target.test.js @@ -9,8 +9,6 @@ import expect from '@kbn/expect'; import { shallow } from 'enzyme'; import { ChartTarget } from './chart_target'; -import { coreMock, notificationServiceMock } from '../../../../../../../src/core/public/mocks'; - const props = { seriesToShow: ['Max Heap', 'Max Heap Used'], series: [ @@ -52,18 +50,7 @@ jest.mock('../../np_imports/ui/chrome', () => { }); // TODO: Skipping for now, seems flaky in New Platform (needs more investigation) -describe.skip('Test legends to toggle series: ', () => { - beforeEach(async () => { - jest.doMock('ui/new_platform', () => ({ - npSetup: { - core: { - ...coreMock.createSetup(), - notifications: notificationServiceMock.createStartContract(), - }, - }, - })); - }); - +describe('Test legends to toggle series: ', () => { const ids = props.series.map(item => item.id); describe('props.series: ', () => {