1. One date

Selected: none

2. Two dates, different years

"From" starts in January 2019 and "To" in June 2027, so the two calendars show different years. A test that changes the year in one of them must not touch the other.

Days between: —

3. Date and time

What to practise

In VAF: AsDateTimeFlatpickerV4() — guide, section 2.

Tested in VAF-Demo

A test of this page from VAF-Demo, written with shared steps: the test says what the user does, the steps hold the VAF chains.

[Test]
public void FromAndToInDifferentYears()
{
    var from = new DateTime(2018, 3, 15);
    var to = new DateTime(2028, 11, 20);

    DatePickersSteps.LetsChooseTheDates(from, to);
    DatePickersSteps.LetsCheckTheDates(from, to);
}

On GitHub (opens in a new tab)