X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/course/tests/behat
home
/
cbholdings
/
pasukulu
/
course
/
tests
/
behat
/
📁
..
📄
activities_edit_completion.feature
(2.42 KB)
📄
activities_edit_name.feature
(2.14 KB)
📄
activities_visibility_icons.feature
(8.62 KB)
📄
activity_chooser.feature
(14.49 KB)
📄
activity_chooser_plus.feature
(2.3 KB)
📄
activity_navigation.feature
(16.58 KB)
📄
activity_navigation_with_restrictions.feature
(3.38 KB)
📄
add_activities.feature
(3.83 KB)
📄
behat_course.php
(87.07 KB)
📄
category_change_visibility.feature
(16.56 KB)
📄
category_management.feature
(22.64 KB)
📄
category_resort.feature
(10.92 KB)
📄
course_activity_dates.feature
(3.58 KB)
📄
course_browsing.feature
(4.65 KB)
📄
course_category_breadcrumbs.feature
(13.69 KB)
📄
course_category_management_listing.feature
(43.42 KB)
📄
course_change_visibility.feature
(5.79 KB)
📄
course_collapse_sections.feature
(10.13 KB)
📄
course_contact.feature
(7.35 KB)
📄
course_controls.feature
(11.81 KB)
📄
course_creation.feature
(5.86 KB)
📄
course_download_content.feature
(2.27 KB)
📄
course_download_content_cm.feature
(3.1 KB)
📄
course_download_content_permissions.feature
(5.41 KB)
📄
course_format.feature
(4.1 KB)
📄
course_relativedatesmode.feature
(2.08 KB)
📄
course_request.feature
(4.85 KB)
📄
course_resort.feature
(11.28 KB)
📄
course_search.feature
(1.58 KB)
📄
course_summary_format.feature
(1.41 KB)
📄
coursetags.feature
(4.09 KB)
📄
create_delete_course.feature
(5.13 KB)
📄
customfields_locked.feature
(2.52 KB)
📄
customfields_visibility.feature
(3.55 KB)
📄
edit_settings.feature
(2.61 KB)
📄
force_group_mode.feature
(2.1 KB)
📄
frontpage_display_modes.feature
(3.98 KB)
📄
frontpage_topic_section.feature
(1.99 KB)
📄
general_section.feature
(1.59 KB)
📄
keyholder.feature
(2.2 KB)
📄
max_number_sections.feature
(1.87 KB)
📄
move_activities.feature
(2.31 KB)
📄
move_sections.feature
(2.48 KB)
📄
navigate_course_list.feature
(3.18 KB)
📄
other_users.feature
(1.37 KB)
📄
paged_course_information.feature
(3.69 KB)
📄
paged_course_navigation.feature
(5.99 KB)
📄
recommend_activities.feature
(2 KB)
📄
rename_roles.feature
(2.85 KB)
📄
restrict_available_activities.feature
(1.91 KB)
📄
role_renaming.feature
(2.07 KB)
📄
search_recommended_activities.feature
(1 KB)
📄
section_highlighting.feature
(1.78 KB)
📄
section_visibility.feature
(4.93 KB)
📄
sectionzero_title.feature
(2.22 KB)
📄
view_subfolders_inline.feature
(3.03 KB)
Editing: course_creation.feature
@core @core_course Feature: Managers can create courses In order to group users and contents As a manager I need to create courses and set default values on them @javascript Scenario: Courses are created with the default announcements forum Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@example.com | | student1 | Student | 1 | student1@example.com | And I log in as "admin" And I create a course with: | Course full name | Course 1 | | Course short name | C1 | And I enrol "Teacher 1" user as "Teacher" And I enrol "Student 1" user as "Student" And I log out When I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on And I add the "Latest announcements" block And I am on the Announcements "forum activity" page And "Add discussion topic" "link" should exist And I navigate to "Subscriptions" in current page administration And I should see "Forced subscription" And I log out And I am on the Announcements "forum activity" page logged in as student1 And "Add a new topic" "link" should not exist Scenario: Create a course from the management interface and return to it Given the following "courses" exist: | fullname | shortname | idnumber | startdate | enddate | | Course 1 | Course 1 | C1 | 957139200 | 960163200 | And I log in as "admin" And I go to the courses management page And I should see the "Categories" management page And I click on category "Category 1" in the management interface And I should see the "Course categories and courses" management page And I click on "Create new course" "link" in the "#course-listing" "css_element" When I set the following fields to these values: | Course full name | Course 2 | | Course short name | Course 2 | | Course summary | Course 2 summary | | id_startdate_day | 24 | | id_startdate_month | October | | id_startdate_year | 2015 | | id_enddate_day | 24 | | id_enddate_month | October | | id_enddate_year | 2016 | And I press "Save and return" Then I should see the "Course categories and courses" management page And I click on "Sort by Course time created ascending" "link" in the ".course-listing-actions" "css_element" And I should see course listing "Course 1" before "Course 2" And I click on "Course 2" "link" in the "region-main" "region" And I click on "Edit" "link" in the ".course-detail" "css_element" And the following fields match these values: | Course full name | Course 2 | | Course short name | Course 2 | | Course summary | Course 2 summary | | id_startdate_day | 24 | | id_startdate_month | October | | id_startdate_year | 2015 | | id_enddate_day | 24 | | id_enddate_month | October | | id_enddate_year | 2016 | Scenario: Create a course as a custom course creator Given the following "users" exist: | username | firstname | lastname | email | | kevin | Kevin | the | kevin@example.com | And the following "roles" exist: | shortname | name | archetype | | creator | Creator | | And the following "system role assigns" exist: | user | role | contextlevel | | kevin | creator | System | And the following "role capability" exists: | role | creator | | moodle/course:create | allow | | moodle/course:manageactivities | allow | | moodle/course:viewparticipants | allow | And I log in as "kevin" And I am on site homepage When I press "Add a new course" And I set the following fields to these values: | Course full name | My first course | | Course short name | myfirstcourse | And I press "Save and display" And I follow "Participants" Then I should see "My first course" And I should see "Participants" Scenario: Creators' role in new courses setting behavior Given the following "users" exist: | username | firstname | lastname | email | | kevin | Kevin | the | kevin@example.com | And the following "system role assigns" exist: | user | role | contextlevel | | kevin | coursecreator | System | And I log in as "admin" And I set the following administration settings values: | Creators' role in new courses | Non-editing teacher | And I log out And I log in as "kevin" And I am on site homepage When I press "Add a new course" And I set the following fields to these values: | Course full name | My first course | | Course short name | myfirstcourse | And I press "Save and display" And I click on "Participants" "link" Then I should see "Non-editing teacher" in the "Kevin the" "table_row" @javascript Scenario: Create a course as admin Given I log in as "admin" And the following config values are set as admin: | enroladminnewcourse | 0 | And I navigate to "Courses > Add a new course" in site administration And I set the following fields to these values: | Course full name | My first course | | Course short name | myfirstcourse | And I press "Save and display" And I navigate to course participants Then I should not see "Teacher" And I should see "Nothing to display" And the following config values are set as admin: | enroladminnewcourse | 1 | And I navigate to "Courses > Add a new course" in site administration And I set the following fields to these values: | Course full name | My second course | | Course short name | mysecondcourse | And I press "Save and display" And I navigate to course participants And I should see "Teacher" And I should not see "Nothing to display"
Upload File
Create Folder