diff --git a/composer.json b/composer.json index 6aa17f3939e..b6f52461d53 100644 --- a/composer.json +++ b/composer.json @@ -8,6 +8,6 @@ "require-dev": { "phpunit/phpunit": "3.7.*", "phpunit/dbUnit": "1.2.*", - "moodlehq/behat-extension": "1.28.3" + "moodlehq/behat-extension": "1.28.4" } } diff --git a/grade/grading/tests/behat/behat_grading.php b/grade/grading/tests/behat/behat_grading.php index 06fe060d006..0a0bf07862a 100644 --- a/grade/grading/tests/behat/behat_grading.php +++ b/grade/grading/tests/behat/behat_grading.php @@ -138,8 +138,8 @@ class behat_grading extends behat_base { // Should work with both templates and own forms. $literaltemplate = $this->getSession()->getSelectorsHandler()->xpathLiteral(get_string('templatepick', 'grading')); $literalownform = $this->getSession()->getSelectorsHandler()->xpathLiteral(get_string('templatepickownform', 'grading')); - $usetemplatexpath = "//a[./descendant::div[text()=$literaltemplate]]|" . - "//a[./descendant::div[text()=$literalownform]]"; + $usetemplatexpath = "/a[./descendant::div[text()=$literaltemplate]]|" . + "/a[./descendant::div[text()=$literalownform]]"; return array( new Given('I go to "' . $this->escape($activityname) . '" advanced grading page'), diff --git a/lib/editor/tinymce/tests/behat/edit_available_icons.feature b/lib/editor/tinymce/tests/behat/edit_available_icons.feature index 9297dade213..2724d5c7805 100644 --- a/lib/editor/tinymce/tests/behat/edit_available_icons.feature +++ b/lib/editor/tinymce/tests/behat/edit_available_icons.feature @@ -9,8 +9,7 @@ Feature: Add or remove items from the TinyMCE editor toolbar | fullname | shortname | category | | Course 1 | C1 | 0 | And I log in as "admin" - And I follow "Admin User" - And I follow "Edit profile" + And I navigate to "Edit profile" node in "My profile settings" And I set the field "Text editor" to "TinyMCE HTML editor" And I press "Update profile" And I follow "Home"