Logo: Relish

  1. Sign in

Project: Common-date-api

Gather the next working date when a specified number of days are added

  • @next_working_date
Scenarios
Return the next working day for a specified number of days
Given
the initial date details of "2016-05-23"
And
the number of specified days being "3"
When
the initial date and specified days are passed to the system
Then
the correct working day of "2016-05-26" is returned
Return the next working day for a specified number of days including a weekend
Given
the initial date details of "2016-06-22"
And
the number of specified days being "3"
When
the initial date and specified days are passed to the system
Then
the correct working day of "2016-06-27" is returned
Return the next working day for a specified number of days including a bank holiday
Given
the initial date details of "2016-08-26"
And
the number of specified days being "1"
When
the initial date and specified days are passed to the system
Then
the correct working day of "2016-08-30" is returned
And
the correct holidays number of "1" is returned
Return the next working day for a large number number of specified days
Given
the initial date is today
And
the number of specified days being "520"
When
the initial date and specified days are passed to the system
Then
a valid past maximum date number is returned

Last published over 3 years ago by Matthew Thomas.