X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/course/format/tests/behat
home
/
cbholdings
/
pasukulu
/
course
/
format
/
tests
/
behat
/
📁
..
📄
bulk_activity_actions.feature
(10.85 KB)
📄
bulk_section_actions.feature
(12.99 KB)
📄
bulk_select.feature
(12.21 KB)
📄
bulk_show_one_section_actions.feature
(5.65 KB)
📄
content_preferences.feature
(4.21 KB)
📄
course_courseindex.feature
(18.41 KB)
📄
course_manageactivities.feature
(3.56 KB)
📄
courseindex_completion.feature
(6.22 KB)
📄
courseindex_keyboardnav.feature
(4.88 KB)
📄
courseindex_language.feature
(1.46 KB)
📄
duplicate_section.feature
(1.52 KB)
📄
movecm_keyboard.feature
(4.54 KB)
📄
movesection_keyboard.feature
(2.39 KB)
📄
section_visibility.feature
(2.45 KB)
Editing: content_preferences.feature
@core @core_course @core_courseformat Feature: Course content collapsed user preferences In order to quickly access the course content As a user I need to keep the course sections collapsed when I return to the course. Background: Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@example.com | | student1 | Student | 1 | student1@example.com | And the following "course" exists: | fullname | Course 1 | | shortname | C1 | | category | 0 | | enablecompletion | 1 | | numsections | 5 | And the following "activities" exist: | activity | name | intro | course | idnumber | section | | assign | Activity sample 1 | Test assignment description | C1 | sample1 | 1 | | book | Activity sample 2 | | C1 | sample2 | 2 | | choice | Activity sample 3 | Test choice description | C1 | sample3 | 3 | | assign | Activity sample 4 | Test assignment description | C1 | sample1 | 4 | | assign | Activity sample 5 | Test assignment description | C1 | sample1 | 5 | And the following "course enrolments" exist: | user | course | role | | student1 | C1 | student | | teacher1 | C1 | editingteacher | @javascript Scenario: Course content preferences Given I am on the "C1" "Course" page logged in as "teacher1" And I should see "Topic 1" in the "region-main" "region" And I should see "Activity sample 1" in the "region-main" "region" And I should see "Topic 2" in the "region-main" "region" And I should see "Activity sample 2" in the "region-main" "region" And I should see "Topic 3" in the "region-main" "region" And I should see "Activity sample 3" in the "region-main" "region" And I click on "#collapssesection1" "css_element" When I reload the page Then I should see "Topic 1" in the "region-main" "region" And I should not see "Activity sample 1" in the "region-main" "region" And I should see "Topic 2" in the "region-main" "region" And I should see "Activity sample 2" in the "region-main" "region" And I should see "Topic 3" in the "region-main" "region" And I should see "Activity sample 3" in the "region-main" "region" And I click on "#collapssesection2" "css_element" And I reload the page And I should see "Topic 1" in the "region-main" "region" And I should not see "Activity sample 1" in the "region-main" "region" And I should see "Topic 2" in the "region-main" "region" And I should not see "Activity sample 2" in the "region-main" "region" And I should see "Topic 3" in the "region-main" "region" And I should see "Activity sample 3" in the "region-main" "region" And I click on "#collapssesection3" "css_element" And I reload the page And I should see "Topic 1" in the "region-main" "region" And I should not see "Activity sample 1" in the "region-main" "region" And I should see "Topic 2" in the "region-main" "region" And I should not see "Activity sample 2" in the "region-main" "region" And I should see "Topic 3" in the "region-main" "region" And I should not see "Activity sample 3" in the "region-main" "region" And I click on "#collapssesection2" "css_element" And I click on "#collapssesection3" "css_element" And I reload the page And I should see "Topic 1" in the "region-main" "region" And I should not see "Activity sample 1" in the "region-main" "region" And I click on "#collapssesection4" "css_element" And I turn editing mode on And I delete section "1" And I click on "Delete" "button" in the ".modal" "css_element" And I should not see "Activity sample 1" in the "region-main" "region" And I should see "Activity sample 2" in the "region-main" "region" And I should see "Activity sample 3" in the "region-main" "region" And I should not see "Activity sample 4" in the "region-main" "region" And I should see "Activity sample 5" in the "region-main" "region"
Upload File
Create Folder