Skip to content

Commit 64235d8

Browse files
committed
test: update tests and snapshots
- triggered by updated initial option for EuiColorVisStore to ensure Borealis values
1 parent 532e4a6 commit 64235d8

10 files changed

Lines changed: 71 additions & 71 deletions

File tree

src/platform/packages/shared/kbn-coloring/src/palettes/utils/get_config_from_palette.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe('getConfigFromPalette', () => {
8888
id: KbnPalette.Complementary,
8989
steps: [
9090
{ ...commonStep, colorIndex: 8 },
91-
{ touched: false, type: 'colorCode' as const, colorCode: '#ebeff5' },
91+
{ touched: false, type: 'colorCode' as const, colorCode: '#f6f9fc' },
9292
{ ...commonStep, colorIndex: 2 },
9393
],
9494
},

src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/components/log_level_badge.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('LogLevelBadge', () => {
3030
expect(badge).toBeInTheDocument();
3131
expect(badge).toHaveTextContent('info');
3232
expect(getComputedStyle(badge).getPropertyValue('--euiBadgeBackgroundColor')).toEqual(
33-
'#90bdff'
33+
'#a8caff'
3434
);
3535
});
3636

src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ const euiTheme = {
2020
describe('getLogLevelColor', () => {
2121
test('should work correctly', () => {
2222
expect(getLogLevelColor(LogLevelCoalescedValue.debug, euiTheme as EuiThemeComputed)).toBe(
23-
'#bdd7ff'
23+
'#e8f1ff'
2424
);
2525
expect(getLogLevelColor(LogLevelCoalescedValue.info, euiTheme as EuiThemeComputed)).toBe(
26-
'#90bdff'
26+
'#a8caff'
2727
);
2828
expect(getLogLevelColor(LogLevelCoalescedValue.notice, euiTheme as EuiThemeComputed)).toBe(
2929
'#61a2ff'

src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/profile.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ describe('logsDataSourceProfileProvider', () => {
179179
});
180180

181181
expect(getRowIndicator).toBeDefined();
182-
expect(getRowIndicator?.(row, euiTheme)).toEqual({ color: '#90bdff', label: 'Info' });
182+
expect(getRowIndicator?.(row, euiTheme)).toEqual({ color: '#a8caff', label: 'Info' });
183183
});
184184

185185
it('should not return a color for a missing log level in the document', () => {

x-pack/platform/plugins/shared/maps/public/classes/styles/color_palettes.test.ts

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -15,41 +15,41 @@ import {
1515
describe('getColorPalette', () => {
1616
test('Should create RGB color ramp', () => {
1717
expect(getColorPalette('Blues')).toEqual([
18-
'#e4eefd',
19-
'#d3e3fe',
20-
'#c1d8fe',
21-
'#afceff',
22-
'#9dc3ff',
23-
'#8bb8ff',
24-
'#77adff',
18+
'#d8e7ff',
19+
'#c8ddff',
20+
'#b8d4ff',
21+
'#a8caff',
22+
'#98c0ff',
23+
'#87b6ff',
24+
'#75acff',
2525
'#61a2ff',
2626
]);
2727
});
2828
});
2929

3030
describe('getColorRampCenterColor', () => {
3131
test('Should get center color from color ramp', () => {
32-
expect(getColorRampCenterColor('Blues')).toBe('#9dc3ff');
32+
expect(getColorRampCenterColor('Blues')).toBe('#98c0ff');
3333
});
3434
});
3535

3636
describe('getOrdinalMbColorRampStops', () => {
3737
test('Should create color stops', () => {
3838
expect(getOrdinalMbColorRampStops('Blues', 0, 1000, false)).toEqual([
3939
0,
40-
'#e4eefd',
40+
'#d8e7ff',
4141
125,
42-
'#d3e3fe',
42+
'#c8ddff',
4343
250,
44-
'#c1d8fe',
44+
'#b8d4ff',
4545
375,
46-
'#afceff',
46+
'#a8caff',
4747
500,
48-
'#9dc3ff',
48+
'#98c0ff',
4949
625,
50-
'#8bb8ff',
50+
'#87b6ff',
5151
750,
52-
'#77adff',
52+
'#75acff',
5353
875,
5454
'#61a2ff',
5555
]);
@@ -60,19 +60,19 @@ describe('getOrdinalMbColorRampStops', () => {
6060
0,
6161
'#61a2ff',
6262
125,
63-
'#77adff',
63+
'#75acff',
6464
250,
65-
'#8bb8ff',
65+
'#87b6ff',
6666
375,
67-
'#9dc3ff',
67+
'#98c0ff',
6868
500,
69-
'#afceff',
69+
'#a8caff',
7070
625,
71-
'#c1d8fe',
71+
'#b8d4ff',
7272
750,
73-
'#d3e3fe',
73+
'#c8ddff',
7474
875,
75-
'#e4eefd',
75+
'#d8e7ff',
7676
]);
7777
});
7878

@@ -92,13 +92,13 @@ describe('getPercentilesMbColorRampStops', () => {
9292
];
9393
expect(getPercentilesMbColorRampStops('Blues', percentiles, false)).toEqual([
9494
5567.83,
95-
'#dae8fd',
95+
'#cee1ff',
9696
8069,
97-
'#bed6fe',
97+
'#b5d2ff',
9898
9581.13,
99-
'#a1c5ff',
99+
'#9bc2ff',
100100
11145.5,
101-
'#83b3ff',
101+
'#80b2ff',
102102
16958.18,
103103
'#61a2ff',
104104
]);
@@ -116,13 +116,13 @@ describe('getPercentilesMbColorRampStops', () => {
116116
5567.83,
117117
'#61a2ff',
118118
8069,
119-
'#83b3ff',
119+
'#80b2ff',
120120
9581.13,
121-
'#a1c5ff',
121+
'#9bc2ff',
122122
11145.5,
123-
'#bed6fe',
123+
'#b5d2ff',
124124
16958.18,
125-
'#dae8fd',
125+
'#cee1ff',
126126
]);
127127
});
128128
});

x-pack/platform/plugins/shared/maps/public/classes/styles/heatmap/components/__snapshots__/heatmap_style_editor.test.tsx.snap

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/platform/plugins/shared/maps/public/classes/styles/vector/components/legend/extract_color_from_style_property.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ describe('dynamic', () => {
137137
fieldMetaOptions,
138138
} as ColorDynamicOptions,
139139
} as ColorDynamicStylePropertyDescriptor;
140-
expect(extractColorFromStyleProperty(colorStyleProperty, defaultColor)).toBe('#9dc3ff');
140+
expect(extractColorFromStyleProperty(colorStyleProperty, defaultColor)).toBe('#98c0ff');
141141
});
142142
});
143143

x-pack/platform/plugins/shared/maps/public/classes/styles/vector/properties/__snapshots__/dynamic_color_property.test.tsx.snap

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/platform/plugins/shared/maps/public/classes/styles/vector/properties/dynamic_color_property.test.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -418,19 +418,19 @@ describe('get mapbox color expression (via internal _getMbColor)', () => {
418418
-1,
419419
'rgba(0,0,0,0)',
420420
0,
421-
'#e4eefd',
421+
'#d8e7ff',
422422
12.5,
423-
'#d3e3fe',
423+
'#c8ddff',
424424
25,
425-
'#c1d8fe',
425+
'#b8d4ff',
426426
37.5,
427-
'#afceff',
427+
'#a8caff',
428428
50,
429-
'#9dc3ff',
429+
'#98c0ff',
430430
62.5,
431-
'#8bb8ff',
431+
'#87b6ff',
432432
75,
433-
'#77adff',
433+
'#75acff',
434434
87.5,
435435
'#61a2ff',
436436
]);

x-pack/platform/plugins/shared/ml/public/application/model_management/test_models/models/ner/ner_output.test.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,23 +54,23 @@ describe('NER output', () => {
5454

5555
describe('getClassColor', () => {
5656
test('returns the correct color for class PER', () => {
57-
expect(getClassColor('PER', true)).toBe('#ffe0f5');
57+
expect(getClassColor('PER', true)).toBe('#FFC7DB');
5858
});
5959

6060
test('returns the correct color for class LOC', () => {
61-
expect(getClassColor('LOC', true)).toBe('#bfffff');
61+
expect(getClassColor('LOC', true)).toBe('#A6EDEA');
6262
});
6363

6464
test('returns the correct color for class ORG', () => {
65-
expect(getClassColor('ORG', true)).toBe('#45ded9');
65+
expect(getClassColor('ORG', true)).toBe('#16C5C0');
6666
});
6767

6868
test('returns the correct color for class MISC', () => {
69-
expect(getClassColor('MISC', true)).toBe('#ffe2db');
69+
expect(getClassColor('MISC', true)).toBe('#FFC9C2');
7070
});
7171

7272
test('returns the default color for an unknown class', () => {
73-
expect(getClassColor('UNKNOWN', true)).toBe('#ffe0f5');
73+
expect(getClassColor('UNKNOWN', true)).toBe('#FFC7DB');
7474
});
7575
});
7676
});

0 commit comments

Comments
 (0)