1441 |
ariadna |
1 |
@mod_quiz @quizaccess @quizaccess_seb
|
|
|
2 |
Feature: View the activity header when Safe Exam Browser is required
|
|
|
3 |
In order to correctly identify the quiz when Safe Exam Browser is required
|
|
|
4 |
As a student
|
|
|
5 |
I need to be able to see the quiz information in the activity header
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| student1 | Sam1 | Student1 | student1@example.com |
|
|
|
11 |
And the following "courses" exist:
|
|
|
12 |
| fullname | shortname | category |
|
|
|
13 |
| Course 1 | C1 | 0 |
|
|
|
14 |
And the following "course enrolments" exist:
|
|
|
15 |
| user | course | role |
|
|
|
16 |
| student1 | C1 | student |
|
|
|
17 |
And the following "question categories" exist:
|
|
|
18 |
| contextlevel | reference | name |
|
|
|
19 |
| Course | C1 | Test questions |
|
|
|
20 |
And the following "questions" exist:
|
|
|
21 |
| questioncategory | qtype | name | questiontext |
|
|
|
22 |
| Test questions | truefalse | TF1 | TF question |
|
|
|
23 |
And the following "activity" exists:
|
|
|
24 |
| activity | quiz |
|
|
|
25 |
| course | C1 |
|
|
|
26 |
| idnumber | 00001 |
|
|
|
27 |
| name | Test quiz name |
|
|
|
28 |
| intro | Test quiz description |
|
|
|
29 |
| seb_requiresafeexambrowser | 1 |
|
|
|
30 |
| grade | 10 |
|
|
|
31 |
And quiz "Test quiz name" contains the following questions:
|
|
|
32 |
| question | page |
|
|
|
33 |
| TF1 | 1 |
|
|
|
34 |
|
|
|
35 |
Scenario: Quiz description is displayed when Safe Exam Browser is required
|
|
|
36 |
When I am on the "Test quiz name" "quiz activity" page logged in as student1
|
|
|
37 |
Then I should see "Launch Safe Exam Browser"
|
|
|
38 |
And "Test quiz name" "heading" should exist
|
|
|
39 |
And I should see "Test quiz description"
|