John needs to find an email known to have been sent/received last month, and wants to specify a date range to limit the search results to the appropriate time window.
This task should include a draft design and mockup of the UI elements that are to be modified or created, if any.
IMAP supports these sorts of searches with the AFTER and BEFORE parameters, so this translates in the following three use-cases;
- Search before date $x,
- Search after date $x,
- Search after date $x and before date $y (where $y >= $x).
This means the following test-cases need to be made to fail gracefully;
- Searches where the after date is logically before the before date.
- Searches where the after date is in the future (expected result; empty response, intuitive result; not available for specification?)
- Invalid date specifications.