From f488520752c9a13c6f559e40f7fe679d28529300 Mon Sep 17 00:00:00 2001 From: pkunduGL <142476714+pkunduGL@users.noreply.github.com> Date: Tue, 26 Sep 2023 18:19:48 +0530 Subject: [PATCH] [APPS-2164] migration of dependency from moment to date-fns in task-list-properties.e2e.ts (#8873) --- .../task-list/task-list-properties.e2e.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/process-services-cloud/task-list/task-list-properties.e2e.ts b/e2e/process-services-cloud/task-list/task-list-properties.e2e.ts index 3eb6e8ff8c..2123c90c80 100644 --- a/e2e/process-services-cloud/task-list/task-list-properties.e2e.ts +++ b/e2e/process-services-cloud/task-list/task-list-properties.e2e.ts @@ -25,8 +25,8 @@ import { import { NavigationBarPage } from '../../core/pages/navigation-bar.page'; import { TasksCloudDemoPage } from './../pages/tasks-cloud-demo.page'; import { TaskListCloudConfiguration } from './../config/task-list-cloud.config'; -import * as moment from 'moment'; import { taskFilterConfiguration } from './../config/task-filter.config'; +import { addDays, format, subDays } from 'date-fns'; describe('Edit task filters and task list properties', () => { @@ -54,9 +54,9 @@ describe('Edit task filters and task list properties', () => { let otherOwnerTask; let testUser; let groupInfo; let simpleTask; const priority = 1; - const beforeDate = moment().add(-1, 'days').format('DD/MM/YYYY'); + const beforeDate = format(subDays(new Date(), 1), 'dd/MM/yyyy'); const currentDate = DateUtil.formatDate('DD/MM/YYYY'); - const afterDate = moment().add(1, 'days').format('DD/MM/YYYY'); + const afterDate = format(addDays(new Date(), 1), 'dd/MM/yyyy'); beforeAll(async () => { await apiService.loginWithProfile('identityAdmin');