Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-55522

Behat, support relative dates.

XMLWordPrintable

      Now and then I find relative dates necessary in my behat tests.
      To start with I worked around this issue by creating custom steps.
      However, a much better way is to use the translation feature in behat.
      This way you can simply do things like:

      I should see "the date of next week"
      

      And

      Given the following "activities" exist:
            | activity | course | idnumber | name             |  duedate                      |
            | assign   | C1     | assign1  | Test assignment1 |  the timestamp of tomorrow    |
      

            rajeshtaneja Rajesh Taneja
            brudinie guy thomas
            Jun Pataleta Jun Pataleta
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            CiBoT CiBoT
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.