__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
@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 |
Scenario: Setup workshop with assessment grade and pass grade set
And I log in as "teacher1"
And I add a workshop activity to course "Course1" section "0"
When I set the following fields to these values:
| Workshop name | Test workshop |
| Add requirements | 1 |
| Receive a grade | 1 |
| completiongradeitemnumber | Assessment |
| Passing grade | 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 "Setup phase" "heading" should exist