MDL-71264 behat: New feature covering all day/month/year date changes
commitf751383a1585f7a7ce2099f356ab083bb291d0ce
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 2 Apr 2021 23:22:15 +0000 (3 01:22 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Sat, 3 Apr 2021 08:59:45 +0000 (3 10:59 +0200)
tree2234dc81f9f2cb08362de8b20c6458c1e5d8c2da
parentc7b4cf91f835b9f4685d072423ae80fcb7b08324
MDL-71264 behat: New feature covering all day/month/year date changes

Because of the order that dates and datetimes are filled by behat
sometimes there are some intermediate results that are impossible
and then the form (javascript) automatically reacts and fixes the
date, ultimate leading to a different date that the one we wanted
to set with Behat.

This is noticeable when switching between months (with some day
being the last day of the month) and the 2 months have a different
number of days. For example April date => March date (or the opposite).

This test covers all the critical changes (day, month and year),
back and forth. All times are Perth/Australia.
lib/tests/behat/datetime_any.feature [new file with mode: 0644]