behat date step causes whitespace error in single digit dates
Bug #1714408 reported by
Rebecca Blundell
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Rebecca Blundell |
Bug Description
There is a bug in the patch for Bug 1711277 - Add a step to check dates.
If the date is a single digit, e.g. today being 1 September, the date comes out as " 1 September 2017", when "01 September 2017" is what is being looked for on the page. This can be fixed by trimming the result.
I've also noticed that my i_should_see_date() function never runs the else statement as I'm passing in a default. I should clean this up, either by passing in null as a default format or by removing the else altogether.
Changed in mahara: | |
status: | New → In Progress |
assignee: | nobody → Rebecca Blundell (rjb-dev) |
Changed in mahara: | |
milestone: | none → 17.10.0 |
importance: | Undecided → High |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Patch for "master" branch: https:/ /reviews. mahara. org/7968