Skip to content
Snippets Groups Projects
Verified Commit cb8948bd authored by Rudy Crespo's avatar Rudy Crespo :three:
Browse files

Updated line color for linear regression forecast

Changelog: fixed
EE: true
parent 61210662
No related branches found
No related tags found
1 merge request!121089Updated line color for linear regression forecast
<script>
import * as Sentry from '@sentry/browser';
import { GlToggle, GlBadge } from '@gitlab/ui';
import { gray300 } from '@gitlab/ui/scss_to_js/scss_variables';
import { dataVizBlue500 } from '@gitlab/ui/scss_to_js/scss_variables';
import * as DoraApi from 'ee/api/dora_api';
import ValueStreamMetrics from '~/analytics/shared/components/value_stream_metrics.vue';
import { toYmd } from '~/analytics/shared/utils';
......@@ -160,7 +160,7 @@ export default {
this.forecastChartData[id] = {
name: this.$options.i18n.forecast,
data: [],
lineStyle: { type: 'dashed', color: gray300 },
lineStyle: { type: 'dashed', color: dataVizBlue500 },
areaStyle: { opacity: 0 },
};
......
import * as Sentry from '@sentry/browser';
import { mount, shallowMount } from '@vue/test-utils';
import { GlBadge } from '@gitlab/ui';
import { gray300 } from '@gitlab/ui/scss_to_js/scss_variables';
import { dataVizBlue500 } from '@gitlab/ui/scss_to_js/scss_variables';
import MockAdapter from 'axios-mock-adapter';
import last180DaysData from 'test_fixtures/api/dora/metrics/daily_deployment_frequency_for_last_180_days.json';
import lastWeekData from 'test_fixtures/api/dora/metrics/daily_deployment_frequency_for_last_week.json';
......@@ -385,7 +385,7 @@ describe('deployment_frequency_charts.vue', () => {
expect(currentTimePeriodChartData.data).toHaveLength(3);
expect(forecastSeries.data).toEqual(result);
expect(forecastSeries.data.length).toBe(daysForecasted);
expect(forecastSeries.lineStyle).toEqual({ type: 'dashed', color: gray300 });
expect(forecastSeries.lineStyle).toEqual({ type: 'dashed', color: dataVizBlue500 });
expect(forecastSeries.areaStyle).toEqual({ opacity: 0 });
},
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment