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

I set the field with xpath exception throw is wrong

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Make a behat scripts that does I set the field with xpath with a broken xpath.
      2. Run it.
      3. Verify that the an error message is displayed.

      (Before it was saying:

      01. Catchable Fatal Error: Argument 1 passed to behat_forms::i_set_the_following_fields_to_these_values() must be an 
      instance of Behat\Gherkin\Node\TableNode, none given in
      C:\Users\tjh238\workspace\ouvle2\lib\tests\behat\behat_forms.php line 70
      

      Show
      Make a behat scripts that does I set the field with xpath with a broken xpath. Run it. Verify that the an error message is displayed. (Before it was saying: 01. Catchable Fatal Error: Argument 1 passed to behat_forms::i_set_the_following_fields_to_these_values() must be an instance of Behat\Gherkin\Node\TableNode, none given in C:\Users\tjh238\workspace\ouvle2\lib\tests\behat\behat_forms.php line 70
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      ElementNotFoundException does not take a single string. I'll fix this.

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            timhunt Tim Hunt
            Peer reviewer:
            Jason Platts
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Ankit Agarwal
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Mar/15