Merge branch 'wip-mdl-57669-m31' of https://github.com/rajeshtaneja/moodle into MOODLE_31_STABLE
This commit is contained in:
@@ -386,6 +386,11 @@ class behat_hooks extends behat_base {
|
||||
public function after_step_javascript(AfterStepScope $scope) {
|
||||
global $CFG, $DB;
|
||||
|
||||
// If step is undefined then throw exception, to get failed exit code.
|
||||
if ($scope->getTestResult()->getResultCode() === Behat\Behat\Tester\Result\StepResult::UNDEFINED) {
|
||||
throw new coding_exception("Step '" . $scope->getStep()->getText() . "'' is undefined.");
|
||||
}
|
||||
|
||||
// Save the page content if the step failed.
|
||||
if (!empty($CFG->behat_faildump_path) &&
|
||||
$scope->getTestResult()->getResultCode() === Behat\Testwork\Tester\Result\TestResult::FAILED) {
|
||||
|
||||
@@ -423,5 +423,5 @@ Feature: Edit quiz page - section headings
|
||||
And I click on "Edit quiz" "link" in the "Administration" "block"
|
||||
And I click on the "Remove" page break icon after question "TF10"
|
||||
And I open the "Page 10" add to quiz menu
|
||||
And I choose "a new section heading" in the open action menu
|
||||
And I follow "a new section heading" in the open menu
|
||||
Then "TF10" "list_item" should exist in the "Section heading ..." "list_item"
|
||||
|
||||
Reference in New Issue
Block a user