a1dert/lh-tickets-test — Issue #258: Incorrect behavior of periods filter for Time Offs
Author: a1dert
Created: 2011-11-30 12:01:07+00:00
State: open
Labels: tracker

Imported from lighthouse. Original ticket at: http://redtape.lighthouseapp.com/projects/59696/tickets/344. Created by Alexey Derkach - 2011-06-27T14:35:12Z

Steps to reproduce:

1. Go to Time Off page.
2. Add time off with start day in past, end day in future. All dates must be not in this/next week!
3. Filter time off by “This week”/“Next week”. You can see new added time off.

Expected: user should see time offs filtered by “This week”/“Next week” only if start date of time off more than beginning of week date and end date of time off less than end of week date.
Actual: filters work incorrectly. User can see time off as time off for this/next week if dates of this/next week are between start and end date of time off.

Test data:
Today is 06/27/2011. Create time off for 3 days – 06/04/2011, 07/21/2011, 07/22/2011. And you can see that this time off is displayed as time off for this/next week.

According to: [story 6695](https://tracker.anahoret.com/projects/44/stories/6695 "story 6695")