2 Feature: Display of information before starting a quiz
4 In order to start a quiz with confidence
5 I need information about the quiz settings before I start an attempt
8 Given the following "users" exist:
9 | username | firstname | lastname | email |
10 | student | Student | One | student@example.com |
11 And the following "courses" exist:
12 | fullname | shortname | category |
14 And the following "course enrolments" exist:
15 | user | course | role |
16 | student | 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 | Text of the first question |
24 Scenario: Check the pass grade is displayed
25 Given the following "activities" exist:
26 | activity | name | intro | course | idnumber | gradepass |
27 | quiz | Quiz 1 | Quiz 1 description | C1 | quiz1 | 60.00 |
28 And quiz "Quiz 1" contains the following questions:
31 When I am on the "Quiz 1" "mod_quiz > View" page logged in as "student"
32 Then I should see "Grade to pass: 60.00 out of 100.00"
34 Scenario: Check the pass grade is not displayed if not set
35 Given the following "activities" exist:
36 | activity | name | intro | course | idnumber | gradepass |
37 | quiz | Quiz 1 | Quiz 1 description | C1 | quiz1 | |
38 And quiz "Quiz 1" contains the following questions:
41 When I am on the "Quiz 1" "mod_quiz > View" page logged in as "student"
42 Then I should not see "Grade to pass: 0.00"