MDL-56981 behat: Fixed xpath of radio button to contain class
authorRajesh Taneja <rajesh@moodle.com>
Wed, 16 Nov 2016 00:14:07 +0000 (08:14 +0800)
committerRajesh Taneja <rajesh@moodle.com>
Wed, 16 Nov 2016 00:14:07 +0000 (08:14 +0800)
backup/util/ui/tests/behat/behat_backup.php

index ef8aada..d4ffb03 100644 (file)
@@ -247,7 +247,7 @@ class behat_backup extends behat_base {
 
         // The first category in the list.
         $radionode = $this->find('xpath', "//div[contains(concat(' ', normalize-space(@class), ' '), ' bcs-new-course ')]" .
-            "/descendant::div[@class='restore-course-search']" .
+            "/descendant::div[contains(concat(' ', normalize-space(@class), ' '), ' restore-course-search ')]" .
             "/descendant::input[@type='radio']");
         $radionode->click();