mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-71181 Quiz: Pass grade not displayed on front page
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@mod @mod_quiz | ||
Feature: Display of information before starting a quiz | ||
As a student | ||
In order to start a quiz with confidence | ||
I need information about the quiz settings before I start an attempt | ||
|
||
Background: | ||
Given the following "users" exist: | ||
| username | firstname | lastname | email | | ||
| student | Student | One | student@example.com | | ||
And the following "courses" exist: | ||
| fullname | shortname | category | | ||
| Course 1 | C1 | 0 | | ||
And the following "course enrolments" exist: | ||
| user | course | role | | ||
| student | C1 | student | | ||
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 | Text of the first question | | ||
|
||
Scenario: Check the pass grade is displayed | ||
Given the following "activities" exist: | ||
| activity | name | intro | course | idnumber | gradepass | | ||
| quiz | Quiz 1 | Quiz 1 description | C1 | quiz1 | 60.00 | | ||
And quiz "Quiz 1" contains the following questions: | ||
| question | page | | ||
| TF1 | 1 | | ||
When I am on the "Quiz 1" "mod_quiz > View" page logged in as "student" | ||
Then I should see "Grade to pass: 60.00 out of 100.00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters