diff --git a/apps/meteor/client/components/dashboards/periods.ts b/apps/meteor/client/components/dashboards/periods.ts index e6aaf0f93c0a..824064b99d6c 100644 --- a/apps/meteor/client/components/dashboards/periods.ts +++ b/apps/meteor/client/components/dashboards/periods.ts @@ -70,7 +70,7 @@ const periods = [ range: lastNDays(getLast6Months()), }, { - key: 'last year', + key: 'this year', label: label('This_year'), range: lastNDays(moment().dayOfYear()), }, diff --git a/apps/meteor/client/omnichannel/reports/components/constants.ts b/apps/meteor/client/omnichannel/reports/components/constants.ts index c69fae35f374..a00dbe73403f 100644 --- a/apps/meteor/client/omnichannel/reports/components/constants.ts +++ b/apps/meteor/client/omnichannel/reports/components/constants.ts @@ -41,4 +41,4 @@ export const COLORS = { warning2: Palette.statusColor['status-font-on-warning-2'].toString(), }; -export const PERIOD_OPTIONS: Period['key'][] = ['today', 'this week', 'last 15 days', 'this month', 'last 6 months', 'last year']; +export const PERIOD_OPTIONS: Period['key'][] = ['today', 'this week', 'last 15 days', 'this month', 'last 6 months', 'this year']; diff --git a/apps/meteor/tests/e2e/omnichannel/omnichannel-reports.spec.ts b/apps/meteor/tests/e2e/omnichannel/omnichannel-reports.spec.ts index f336bf7eab62..2fcc6cff2ad0 100644 --- a/apps/meteor/tests/e2e/omnichannel/omnichannel-reports.spec.ts +++ b/apps/meteor/tests/e2e/omnichannel/omnichannel-reports.spec.ts @@ -90,12 +90,12 @@ test.describe.serial('Omnichannel Reports', () => { await route.fulfill({ response, json: mock }); }); - await poReports.statusSection.selectPeriod('last year'); + await poReports.statusSection.selectPeriod('this year'); await expect(poReports.statusSection.legendItem(`Closed 25 (25%)`)).toBeVisible(); await expect(poReports.statusSection.legendItem(`Open 25 (25%)`)).toBeVisible(); await expect(poReports.statusSection.legendItem(`Queued 25 (25%)`)).toBeVisible(); await expect(poReports.statusSection.legendItem(`On hold 25 (25%)`)).toBeVisible(); - await expect(poReports.statusSection.txtSummary).toHaveText('100 conversations, last year'); + await expect(poReports.statusSection.txtSummary).toHaveText('100 conversations, this year'); }); }); @@ -145,10 +145,10 @@ test.describe.serial('Omnichannel Reports', () => { await route.fulfill({ response, json: mock }); }); - await poReports.channelsSection.selectPeriod('last year'); + await poReports.channelsSection.selectPeriod('this year'); await expect(poReports.channelsSection.legendItem(`Channel 1 50 (50%)`)).toBeVisible(); await expect(poReports.channelsSection.legendItem(`Channel 2 50 (50%)`)).toBeVisible(); - await expect(poReports.channelsSection.txtSummary).toHaveText('100 conversations, last year'); + await expect(poReports.channelsSection.txtSummary).toHaveText('100 conversations, this year'); }); await test.step('More than 5 channels', async () => {