X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/mod/quiz/report/overview/tests/behat
home
/
cbholdings
/
pasukulu
/
mod
/
quiz
/
report
/
overview
/
tests
/
behat
/
📁
..
📄
basic.feature
(5.25 KB)
📄
regrading.feature
(11.74 KB)
📄
regrading_not_possible.feature
(2.5 KB)
📄
reopen_attempt.feature
(2.38 KB)
Editing: reopen_attempt.feature
@mod @mod_quiz @quiz @quiz_overview @javascript Feature: Reopening Never submitted quiz attempts In order to cut some slack to students who forgot to submit their quiz attempt As a teacher I need to be able to reopen selected attempts. Background: Given the following "users" exist: | username | firstname | lastname | | teacher | Mark | Allwright | | student | Freddy | Forgetful | And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And the following "course enrolments" exist: | user | course | role | | teacher | C1 | editingteacher | | student | C1 | student | And the following "question categories" exist: | contextlevel | reference | name | | Course | C1 | Test questions | And the following "questions" exist: | questioncategory | qtype | name | | Test questions | truefalse | TF | And the following "activities" exist: | activity | name | course | idnumber | | quiz | Test quiz | C1 | quiz1 | And quiz "Test quiz" contains the following questions: | question | page | | TF | 1 | And user "student" has started an attempt at quiz "Test quiz" And the attempt at "Test quiz" by "student" was never submitted Scenario: Attempt can be reopened Given I am on the "Test quiz" "mod_quiz > Grades report" page logged in as teacher When I press "Reopen" And I should see "This will reopen attempt 1 by Freddy Forgetful." in the "Reopen attempt?" "dialogue" And I should see "The attempt will remain open and can be continued." in the "Reopen attempt?" "dialogue" And I click on "Reopen" "button" in the "Reopen attempt?" "dialogue" Then I should see "In progress" in the "Freddy Forgetful" "table_row" And "Reopen" "button" should not exist Scenario: Reopening an attempt can be cancelled and then nothing happens Given I am on the "Test quiz" "mod_quiz > Grades report" page logged in as teacher And I start watching to see if a new page loads When I press "Reopen" And I click on "Cancel" "button" in the "Reopen attempt?" "dialogue" Then a new page should not have loaded since I started watching And I should see "Never submitted" in the "Freddy Forgetful" "table_row"
Upload File
Create Folder