From 14017d7a24b639a5f58da05b673f2686ca86e117 Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Thu, 14 Apr 2022 17:43:44 +0000 Subject: [PATCH] Revert "Update tests" This reverts commit df0d24960fb8a314792b4268d1129e448e1dd8b1. Signed-off-by: Joshua Li --- .../__snapshots__/gantt_chart.test.tsx.snap | 20 +- .../gantt_chart_editor.test.tsx.snap | 233 +++++++++--------- .../options_editor.test.tsx.snap | 4 +- .../__tests__/options_editor.test.tsx | 2 +- 4 files changed, 131 insertions(+), 128 deletions(-) diff --git a/gantt-chart/public/components/__tests__/__snapshots__/gantt_chart.test.tsx.snap b/gantt-chart/public/components/__tests__/__snapshots__/gantt_chart.test.tsx.snap index fe95bee..6ce0cbc 100644 --- a/gantt-chart/public/components/__tests__/__snapshots__/gantt_chart.test.tsx.snap +++ b/gantt-chart/public/components/__tests__/__snapshots__/gantt_chart.test.tsx.snap @@ -4,14 +4,14 @@ exports[` spec renders empty prompt when no data is returned 1`] =
+

+ No data +

-

- No data -

@@ -32,14 +32,14 @@ exports[` spec renders empty prompt when no field is selected 1`]
+

+ No data +

-

- No data -

diff --git a/gantt-chart/public/components/__tests__/__snapshots__/gantt_chart_editor.test.tsx.snap b/gantt-chart/public/components/__tests__/__snapshots__/gantt_chart_editor.test.tsx.snap index 7923a1a..9352378 100644 --- a/gantt-chart/public/components/__tests__/__snapshots__/gantt_chart_editor.test.tsx.snap +++ b/gantt-chart/public/components/__tests__/__snapshots__/gantt_chart_editor.test.tsx.snap @@ -2,7 +2,7 @@ exports[` spec renders the component 1`] = `

spec renders the component 1`] = ` class="euiFormRow__fieldWrapper" >
- -
+
+
- - Select an option: - , is selected - -
@@ -85,7 +86,7 @@ exports[` spec renders the component 1`] = `
Gantt chart allows you to compare schedules of the selected field.
@@ -109,54 +110,55 @@ exports[` spec renders the component 1`] = ` class="euiFormRow__fieldWrapper" >
- -
+
+
- - Select an option: - , is selected - -
@@ -164,7 +166,7 @@ exports[` spec renders the component 1`] = `
Select a timestamp field to represent the beginning of a schedule.
@@ -188,54 +190,55 @@ exports[` spec renders the component 1`] = ` class="euiFormRow__fieldWrapper" >
- -
+
+
- - Select an option: - , is selected - -
@@ -243,7 +246,7 @@ exports[` spec renders the component 1`] = `
Value of duration field must be a time interval that can be added to the start timestamp field.
diff --git a/gantt-chart/public/components/__tests__/__snapshots__/options_editor.test.tsx.snap b/gantt-chart/public/components/__tests__/__snapshots__/options_editor.test.tsx.snap index 7ebfb87..e1c8cd5 100644 --- a/gantt-chart/public/components/__tests__/__snapshots__/options_editor.test.tsx.snap +++ b/gantt-chart/public/components/__tests__/__snapshots__/options_editor.test.tsx.snap @@ -2,7 +2,7 @@ exports[` spec renders the component 1`] = `

spec renders the component 1`] = ` exports[` spec renders the component with different options 1`] = `

spec', () => { it('sets colors', () => { const setValue = jest.fn(); const utils = render(); - const colorPicker = utils.getByTestId('colorPickerAnchor'); + const colorPicker = utils.getByTestId('euiColorPickerAnchor'); fireEvent.change(colorPicker, { target: { value: '#EEEEEE' } }); expect(setValue).toBeCalledWith('colors', '#EEEEEE'); });