MDL-69149 core_grade: Correct xpath attribute selector
authorAndrew Nicols <andrew@nicols.co.uk>
Fri, 26 Jun 2020 11:59:56 +0000 (19:59 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Fri, 26 Jun 2020 11:59:56 +0000 (19:59 +0800)
grade/tests/behat/behat_grade.php

index b5e6dde..02a4d1e 100644 (file)
@@ -226,7 +226,7 @@ class behat_grade extends behat_base {
             $inputxpath = "//input[@class='idnumber'][" .
                     "parent::li[@class='item'][text()='" . $gradeitem . "']" .
                     " | " .
-                    "parent::li[@class='categoryitem' | @class='courseitem']" .
+                    "parent::li[@class='categoryitem' or @class='courseitem']" .
                     "/parent::ul/parent::li[starts-with(text(),'" . $gradeitem . "')]" .
                     "]";
             $this->execute('behat_forms::i_set_the_field_with_xpath_to', array($inputxpath, $idnumber));