Behat: Write test for datepicker

Bug #1892283 reported by Rebecca Blundell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Confirmed
Medium
Rangi Daymond

Bug Description

Automating a manual test. This is from Bug 1744191: The date picker is updated with the bootstrap-datepicker. However that original bug is for code to update the file browser consistently across the site, so is not specifically related to the datepicker. What we need here is a test for the basic functionality of the datepicker.

1. User logged in
2. User browse to Main menu > Content > Resume
3. Confirm that the date is in the same format as when created using the old date picker ✔
4. Confirm the date picker is displayed when the user clicks inside the date field ✔
5. Confirm the user can enter a date by typing in a date using the keyboard ✔
6. Confirm the user can change a day inside the date picker by clicking the adjacent number in the calendar ✔
7. Confirm the user can change the month by
 a. Clicking the forward > icon ✔
 b. Clicking the month and year located in centre of modal window at the top ✔
 c. Confirm months are now displayed instead of days and year is displayed in centre of modal window at the top ✔
8. Confirm the user can change the year inside the date picker by clicking the month and year located in centre of modal window at the top ✔
9. Confirm years are now displayed instead of days and a year range is displayed in centre of modal window at the top ✔
10. Confirm the user can delete the date by clicking the trash can icon ✔

Tags: behat-test
Changed in mahara:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.