Content
View differences
Updated by Parimal Satyal over 3 years ago
## Steps to reproduce
* Create new work package and open date picker
* Click on Today link under Start date
* ✅ Start date is set
* Click on Today link under Finish date
* ✅ Finish date is set
* ✅ duration is filled automatically
* Click on date on the calendar _after_ the current date
* ✅ Start date is changed
* ✅ Finish date is removed
* ✅ duration is removed
* Click on Today link under Finish date
* ✅ Finish date is set
* ❌ Start date is set to the same date
* Expected behavior?
* ❌ duration is not computed
* Expected behavior?
Derived from Christophe's comment here: https://github.com/opf/openproject/pull/11288
The datepicker may not receive a date range where start date > due date. But this is exactly what happens when using the "today" link of the finish date.
Suggestion: Use the same behavior as in #43539 scenario 13, but applied for Finish date
> #### Scenario 13a **Scenario 13a**
>
> * Setup
> * Start date: Tuesday, February 9, 2021
> * Finish date: empty Thursday, February 11, 2021
> * Duration: empty 3
> * Today's date is Tuesday, February 16th, 2021
> * Change
> * The user clicks the "Today" link of the Finish date.
> * Expected result
> * The finish date is set to February 16th, 2021
> * The start date is cleared.
> * Duration is cleared.
* Create new work package and open date picker
* Click on Today link under Start date
* ✅ Start date is set
* Click on Today link under Finish date
* ✅ Finish date is set
* ✅ duration is filled automatically
* Click on date on the calendar _after_ the current date
* ✅ Start date is changed
* ✅ Finish date is removed
* ✅ duration is removed
* Click on Today link under Finish date
* ✅ Finish date is set
* ❌ Start date is set to the same date
* Expected behavior?
* ❌ duration is not computed
* Expected behavior?
Derived from Christophe's comment here: https://github.com/opf/openproject/pull/11288
The datepicker may not receive a date range where start date > due date. But this is exactly what happens when using the "today" link of the finish date.
Suggestion: Use the same behavior as in #43539 scenario 13, but applied for Finish date
>
> * Setup
> * Start date: Tuesday, February 9, 2021
> * Finish date: empty
> * Duration: empty
> * Today's date is Tuesday, February 16th, 2021
> * Change
> * The user clicks the "Today" link of the Finish date.
> * Expected result
> * The finish date is set to February 16th, 2021
> * The start date is cleared.
> * Duration is cleared.