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

Checking table values in Behat is broken

    XMLWordPrintable

Details

    • MOODLE_400_STABLE

    Description

      The Behat step to check for values in tables is broken and does not give proper results. I'm not sure what's the actual problem, but even something like this passes instead of failing:

      Then the following should exist in the "doesnotexist" table:
            | Name             |
            | thisdoesnotexist |
      

      And then some tests that should be passing fail instead, so I don't think this step is doing its job and it may be dangerous to use until it's fixed.

      Here's a reproduction with some botched scenarios: https://github.com/NoelDeMartin/moodle-local_sandbox/blob/MDL-75081/tests/behat/sandbox.feature

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              noeldemartin Noel De Martin
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: