AutorÃa | Ultima modificación | Ver Log |
@mod @mod_subsectionFeature: Teachers navigate to subsectionsIn order to use subsectionsAs an teacherI need to navigate to subsectionsBackground:Given the following "users" exist:| username | firstname | lastname | email || teacher1 | Teacher | 1 | teacher1@example.com |And the following "courses" exist:| fullname | shortname | category | numsections | initsections || Course 1 | C1 | 0 | 1 | 1 |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher |And the following "activities" exist:| activity | name | course | idnumber | section || assign | Assignment 1 | C1 | assignment1 | 1 || subsection | Subsection 1 | C1 | subsection1 | 1 || page | Page in Subsection 1 | C1 | page1 | 2 || assign | Assignment 2 | C1 | assignment2 | 1 |And I log in as "teacher1"Scenario: Subsection section page shows parent section in the breadcrumbWhen I am on the "C1 > Subsection 1" "course > section" pageThen "C1" "link" should exist in the ".breadcrumb" "css_element"And "Section 1" "link" should exist in the ".breadcrumb" "css_element"And "Subsection 1" "text" should exist in the ".breadcrumb" "css_element"Scenario: Activity page shows subsection and its parent section in the breadcrumbWhen I am on the "page1" "Activity" pageThen "C1" "link" should exist in the ".breadcrumb" "css_element"And "Section 1" "link" should exist in the ".breadcrumb" "css_element"And "Subsection 1" "link" should exist in the ".breadcrumb" "css_element"And "Page in Subsection 1" "text" should exist in the ".breadcrumb" "css_element"Scenario: Activity page shows Sections and Subsections in the navigation blockGiven the following config values are set as admin:| unaddableblocks | | theme_boost|And I turn editing mode onWhen I am on the "page1" "Activity" pageAnd I add the "Navigation" block if not presentThen "Section 1" "link" should appear before "Assignment 1" "link" in the "Navigation" "block"And "Assignment 1" "link" should appear before "Subsection 1" "link" in the "Navigation" "block"And "Subsection 1" "link" should appear before "Page in Subsection 1" "link" in the "Navigation" "block"And "Page in Subsection 1" "link" should appear before "Assignment 2" "link" in the "Navigation" "block"@javascriptScenario: Subsection page shows Sections and Subsections in the navigation blockGiven the following config values are set as admin:| unaddableblocks | | theme_boost |And I turn editing mode onWhen I am on the "C1 > Subsection 1" "course > section" pageAnd I add the "Navigation" block if not presentThen "Section 1" "link" should appear before "Assignment 1" "link" in the "Navigation" "block"And "Assignment 1" "link" should appear before "Subsection 1" "link" in the "Navigation" "block"And "Subsection 1" "link" should appear before "Page in Subsection 1" "link" in the "Navigation" "block"And "Page in Subsection 1" "link" should appear before "Assignment 2" "link" in the "Navigation" "block"@javascriptScenario: The navigation block can load subsections via ajaxGiven the following config values are set as admin:| unaddableblocks | | theme_boost |And I am on "Course 1" course homepage with editing mode onAnd I add the "Navigation" block if not present# Open all navigation nodes via keyboard because it does not use buttons/links chevrons.And I click on "Actions menu" "link" in the "Navigation" "block"And I press the escape keyAnd I press the tab keyAnd I press the multiply keyThen "Section 1" "link" should appear before "Assignment 1" "link" in the "Navigation" "block"And "Assignment 1" "link" should appear before "Subsection 1" "link" in the "Navigation" "block"And "Subsection 1" "link" should appear before "Page in Subsection 1" "link" in the "Navigation" "block"And "Page in Subsection 1" "link" should appear before "Assignment 2" "link" in the "Navigation" "block"