Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
@javascript @mod_quiz @quizaccess @quizaccess_seb
2
Feature: Quiz start with Safe Exam Browser access rule
3
 
4
  Background:
5
    Given the following "courses" exist:
6
      | fullname | shortname |
7
      | Course 1 | C1        |
8
    And the following "users" exist:
9
      | username | firstname | lastname | email                |
10
      | teacher1 | Teacher   | 1        | teacher1@example.com |
11
      | student1 | Student   | 1        | student1@example.com |
12
    And the following "course enrolments" exist:
13
      | user     | course | role           |
14
      | teacher1 | C1     | editingteacher |
15
      | student1 | C1     | student        |
16
    And the following "activities" exist:
17
      | activity | course | section | name   |
18
      | quiz     | C1     | 1       | Quiz 1 |
19
    And the following "question categories" exist:
20
      | contextlevel | reference | name           |
21
      | Course       | C1        | Test questions |
22
    And the following "questions" exist:
23
      | questioncategory | qtype     | name | questiontext   |
24
      | Test questions   | truefalse | TF1  | First question |
25
    And quiz "Quiz 1" contains the following questions:
26
      | question | page | maxmark |
27
      | TF1      | 1    |         |
28
 
29
  Scenario: Start a quiz as student with Safe Exam Browser quiz access rule
30
    When I am on the "Quiz 1" "quiz activity editing" page logged in as teacher1
31
    And I expand all fieldsets
32
    And I set the following fields to these values:
33
      | seb_requiresafeexambrowser | 1 |
34
    And I press "Save and return to course"
35
    And I am on the "Quiz 1" "mod_quiz > View" page logged in as "student1"
36
    Then the "target" attribute of "//a[text()='Download Safe Exam Browser']" "xpath_element" should contain "_blank"