Skip to content

Commit

Permalink
updated test cases
Browse files Browse the repository at this point in the history
Signed-off-by: Mrunal Zambre <[email protected]>
  • Loading branch information
mrunal-z committed Apr 28, 2022
1 parent a2301e3 commit 76d8288
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1894,7 +1894,7 @@ exports[`Panels Table Component renders panel table container 1`] = `
<div
className="euiTableCellContent euiTableCellContent--overflowingContent"
>
11/04/2021 06:10 PM
11/04/2021 11:40 PM
</div>
</td>
</EuiTableRowCell>
Expand Down Expand Up @@ -1926,7 +1926,7 @@ exports[`Panels Table Component renders panel table container 1`] = `
<div
className="euiTableCellContent euiTableCellContent--overflowingContent"
>
11/02/2021 07:26 PM
11/03/2021 12:56 AM
</div>
</td>
</EuiTableRowCell>
Expand Down Expand Up @@ -2060,7 +2060,7 @@ exports[`Panels Table Component renders panel table container 1`] = `
<div
className="euiTableCellContent euiTableCellContent--overflowingContent"
>
11/03/2021 10:51 PM
11/04/2021 04:21 AM
</div>
</td>
</EuiTableRowCell>
Expand Down Expand Up @@ -2092,7 +2092,7 @@ exports[`Panels Table Component renders panel table container 1`] = `
<div
className="euiTableCellContent euiTableCellContent--overflowingContent"
>
11/02/2021 09:44 PM
11/03/2021 03:14 AM
</div>
</td>
</EuiTableRowCell>
Expand Down Expand Up @@ -2226,7 +2226,7 @@ exports[`Panels Table Component renders panel table container 1`] = `
<div
className="euiTableCellContent euiTableCellContent--overflowingContent"
>
11/03/2021 10:37 PM
11/04/2021 04:07 AM
</div>
</td>
</EuiTableRowCell>
Expand Down Expand Up @@ -2258,7 +2258,7 @@ exports[`Panels Table Component renders panel table container 1`] = `
<div
className="euiTableCellContent euiTableCellContent--overflowingContent"
>
10/29/2021 10:15 PM
10/30/2021 03:45 AM
</div>
</td>
</EuiTableRowCell>
Expand Down Expand Up @@ -2392,7 +2392,7 @@ exports[`Panels Table Component renders panel table container 1`] = `
<div
className="euiTableCellContent euiTableCellContent--overflowingContent"
>
11/03/2021 09:26 PM
11/04/2021 02:56 AM
</div>
</td>
</EuiTableRowCell>
Expand Down Expand Up @@ -2424,7 +2424,7 @@ exports[`Panels Table Component renders panel table container 1`] = `
<div
className="euiTableCellContent euiTableCellContent--overflowingContent"
>
11/03/2021 09:26 PM
11/04/2021 02:56 AM
</div>
</td>
</EuiTableRowCell>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ describe('Utils helper functions', () => {

it('validates convertDateTime function', () => {
expect(convertDateTime('2022-01-30T18:44:40.577Z')).toBe(
moment('2022-01-30T18:44:40.577Z').format(PPL_DATE_FORMAT)
moment.utc('2022-01-30T18:44:40.577Z').format(PPL_DATE_FORMAT)
);
expect(convertDateTime('2022-02-25T19:18:33.075Z', true)).toBe(
moment('2022-02-25T19:18:33.075Z').format(PPL_DATE_FORMAT)
moment.utc('2022-02-25T19:18:33.075Z').format(PPL_DATE_FORMAT)
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,13 @@ exports[`No result component Renders No result component 1`] = `
</h2>
<p>
<FormattedMessage
defaultMessage="Your query may not match anything in the current time range, or there may not be any data at all in the currently selected time range. Try change time range, query filters or choose different time fields"
defaultMessage="Your query may not match anything in the current time range, or there may not be any data at all in
the currently selected time range. Try change time range, query filters or choose different time fields"
id="discover.noResults.queryMayNotMatchTitle"
values={Object {}}
>
Your query may not match anything in the current time range, or there may not be any data at all in the currently selected time range. Try change time range, query filters or choose different time fields
Your query may not match anything in the current time range, or there may not be any data at all in
the currently selected time range. Try change time range, query filters or choose different time fields
</FormattedMessage>
</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,90 @@ exports[`Config panel component Renders config panel with visualization data 1`]
},
},
},
Object {
"category": "Visualizations",
"categoryAxis": "xaxis",
"component": [Function],
"editorConfig": Object {
"panelTabs": Array [
Object {
"editor": [Function],
"id": "data-panel",
"mapTo": "dataConfig",
"name": "Data",
"sections": Array [
Object {
"editor": [Function],
"id": "value_options",
"mapTo": "valueOptions",
"name": "Value options",
"schemas": Array [
Object {
"component": null,
"isSingleSelection": true,
"mapTo": "childField",
"name": "Child Field",
},
Object {
"component": null,
"isSingleSelection": true,
"mapTo": "parentField",
"name": "Parent Field",
},
Object {
"component": null,
"isSingleSelection": true,
"mapTo": "valueField",
"name": "Value Field",
},
],
},
],
},
Object {
"content": Array [],
"editor": [Function],
"id": "style-panel",
"mapTo": "layoutConfig",
"name": "Layout",
},
],
},
"fullLabel": "Tree Map",
"icon": [Function],
"iconType": "heatmap",
"id": "tree_map",
"label": "Tree Map",
"name": "tree_map",
"orientation": "v",
"selection": Object {
"dataLoss": "nothing",
},
"seriesAxis": "yaxis",
"type": "tree_map",
"visConfig": Object {
"config": Object {
"displaylogo": false,
"responsive": true,
},
"isUniColor": false,
"layout": Object {
"height": 500,
"legend": Object {
"orientation": "v",
"traceorder": "normal",
},
"margin": Object {
"b": 30,
"l": 60,
"pad": 0,
"r": 30,
"t": 50,
},
"showlegend": true,
},
},
},
]
}
placeholder="Select a chart"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ exports[`<para_input /> spec renders the visualization component 1`] = `
data-test-subj="superDatePickerstartDatePopoverButton"
title="2020-07-21T18:37:44.710Z"
>
2020-07-21T18:37:44+00:00
2020-07-22T00:07:44+05:30
</button>
</div>
</div>
Expand All @@ -298,7 +298,7 @@ exports[`<para_input /> spec renders the visualization component 1`] = `
data-test-subj="superDatePickerendDatePopoverButton"
title="2020-08-20T18:37:44.710Z"
>
2020-08-20T18:37:44+00:00
2020-08-21T00:07:44+05:30
</button>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ exports[`<ParaOutput /> spec renders visualization outputs 1`] = `
class="euiText euiText--small"
style="margin-left: 9px;"
>
2020-07-21T18:37:44+00:00 - 2020-08-20T18:37:44+00:00
2020-07-22T00:07:44+05:30 - 2020-08-21T00:07:44+05:30
</div>
`;

0 comments on commit 76d8288

Please sign in to comment.