Skip to content

Commit

Permalink
Merge pull request #580 from au-heartbeat/revert-578-ADM-551
Browse files Browse the repository at this point in the history
Revert "ADM 551: [frontend] Adjust AUTO To date when user select From date"
  • Loading branch information
YG1022 authored Aug 9, 2023
2 parents 7bdeac6 + 67afcd1 commit 1c577e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('DateRangePicker', () => {

it('should Auto-fill endDate which is after startDate 14 days when fill right startDate ', () => {
const { getByRole } = setup()
const endDate = TODAY.add(13, 'day')
const endDate = TODAY.add(14, 'day')
const startDateInput = getByRole('textbox', { name: START_DATE_LABEL }) as HTMLInputElement
const endDateInput = getByRole('textbox', { name: END_DATE_LABEL }) as HTMLInputElement

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ describe('MetricsStepper', () => {
board: { boardId: '', email: '', projectKey: '', site: '', token: '', type: 'Jira' },
calendarType: 'Regular Calendar(Weekend Considered)',
dateRange: {
endDate: dayjs().endOf('date').add(13, 'day').format('YYYY-MM-DDTHH:mm:ss.SSSZ'),
endDate: dayjs().endOf('date').add(14, 'day').format('YYYY-MM-DDTHH:mm:ss.SSSZ'),
startDate: dayjs().startOf('date').format('YYYY-MM-DDTHH:mm:ss.SSSZ'),
},
metrics: ['Velocity', 'Lead time for changes'],
Expand Down Expand Up @@ -350,7 +350,7 @@ describe('MetricsStepper', () => {
board: { boardId: '', email: '', projectKey: '', site: '', token: '', type: 'Jira' },
calendarType: 'Regular Calendar(Weekend Considered)',
dateRange: {
endDate: dayjs().endOf('date').add(13, 'day').format('YYYY-MM-DDTHH:mm:ss.SSSZ'),
endDate: dayjs().endOf('date').add(14, 'day').format('YYYY-MM-DDTHH:mm:ss.SSSZ'),
startDate: dayjs().startOf('date').format('YYYY-MM-DDTHH:mm:ss.SSSZ'),
},
metrics: ['Velocity', 'Lead time for changes'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const DateRangePicker = () => {
dispatch(
updateDateRange({
startDate: value.startOf('date').format('YYYY-MM-DDTHH:mm:ss.SSSZ'),
endDate: value.endOf('date').add(13, 'day').format('YYYY-MM-DDTHH:mm:ss.SSSZ'),
endDate: value.endOf('date').add(14, 'day').format('YYYY-MM-DDTHH:mm:ss.SSSZ'),
})
)
}
Expand Down

0 comments on commit 1c577e8

Please sign in to comment.