AutorÃa | Ultima modificación | Ver Log |
@javascript @mod_quiz @quizaccess @quizaccess_sebFeature: Quiz start with Safe Exam Browser access ruleBackground:Given the following "courses" exist:| fullname | shortname || Course 1 | C1 |And the following "users" exist:| username | firstname | lastname | email || teacher1 | Teacher | 1 | teacher1@example.com || student1 | Student | 1 | student1@example.com |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher || student1 | C1 | student |And the following "activities" exist:| activity | course | section | name || quiz | C1 | 1 | Quiz 1 |And the following "question categories" exist:| contextlevel | reference | name || Course | C1 | Test questions |And the following "questions" exist:| questioncategory | qtype | name | questiontext || Test questions | truefalse | TF1 | First question |And quiz "Quiz 1" contains the following questions:| question | page | maxmark || TF1 | 1 | |Scenario: Start a quiz as student with Safe Exam Browser quiz access ruleWhen I am on the "Quiz 1" "quiz activity editing" page logged in as teacher1And I expand all fieldsetsAnd I set the following fields to these values:| seb_requiresafeexambrowser | 1 |And I press "Save and return to course"And I am on the "Quiz 1" "mod_quiz > View" page logged in as "student1"Then the "target" attribute of "//a[text()='Download Safe Exam Browser']" "xpath_element" should contain "_blank"