X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/mod/workshop/tests/behat
home
/
cbholdings
/
pasukulu
/
mod
/
workshop
/
tests
/
behat
/
📁
..
📄
behat_mod_workshop.php
(8.05 KB)
📄
delete_submission.feature
(4.38 KB)
📄
embedded_images.feature
(4.45 KB)
📄
example_submission.feature
(1.81 KB)
📄
export_submission.feature
(4.47 KB)
📄
file_type_restriction.feature
(6.25 KB)
📄
grade_to_pass.feature
(4.87 KB)
📄
grading_strategy.feature
(4.62 KB)
📄
group_mode.feature
(3.81 KB)
📄
submission_types.feature
(9.54 KB)
📄
workshop_activity_completion.feature
(4.4 KB)
📄
workshop_activity_filter.feature
(4.53 KB)
📄
workshop_assessment.feature
(8.86 KB)
📄
workshop_completion_pass_grade.feature
(7.34 KB)
📄
workshop_edit_form.feature
(2.45 KB)
📄
workshop_late_submission.feature
(3.59 KB)
📄
workshop_section_remembered.feature
(1.6 KB)
Editing: workshop_edit_form.feature
@mod @mod_workshop Feature: Workshop assessment with grade to pass In order to use workshop activity As a teacher I need to be able to setup workshop with require assessment grade and grade to pass Background: Given the following "users" exist: | username | firstname | lastname | email | | student1 | Sam1 | Student1 | student1@example.com | | teacher1 | Terry1 | Teacher1 | teacher1@example.com | And the following "courses" exist: | fullname | shortname | format | enablecompletion | | Course1 | c1 | topics | 1 | And the following "course enrolments" exist: | user | course | role | | student1 | c1 | student | | teacher1 | c1 | editingteacher | @javascript Scenario: Setup workshop with assessment grade and pass grade set And I log in as "teacher1" And I am on "Course1" course homepage with editing mode on And I add a "Workshop" to section "0" And I expand all fieldsets When I set the following fields to these values: | Workshop name | Test workshop | | Completion tracking | Show activity as complete when conditions are met | | Require grade | Assessment | | completionpassgrade | 1 | And I press "Save and display" And I should see "This activity does not have a valid grade to pass set. It may be set in the Grade section of the activity settings." And I set the field "Assessment grade to pass" to "" And I press "Save and display" And I should see "This activity does not have a valid grade to pass set. It may be set in the Grade section of the activity settings." And I set the field "Assessment grade to pass" to "81" And I press "Save and display" And I should see "The grade to pass can not be greater than the maximum possible grade 20" And I set the field "Assessment grade to pass" to "hello" And I press "Save and display" And I should see "You must enter a number here." And I set the field "Assessment grade to pass" to "12,34" And I press "Save and display" And I should see "You must enter a number here." And I set the field "Assessment grade to pass" to "10" And I press "Save and display" Then I should see "Setup phase" in the "h3#mod_workshop-userplanheading" "css_element"
Upload File
Create Folder