AutorÃa | Ultima modificación | Ver Log |
@mod @mod_subsectionFeature: Teacher can only add subsection when certain conditions are metIn order to limit subsectionsAs an teacherI need to create subsections only when possibleBackground: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 | 5 | 1 |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher |@javascriptScenario: We cannot add subsections when maxsections is reachedGiven the following config values are set as admin:| maxsections | 10 | moodlecourse |And I log in as "teacher1"And I am on "Course 1" course homepage with editing mode onAnd I click on "Add content" "button" in the "Section 1" "section"And I click on "Subsection" "link" in the ".dropdown-menu.show" "css_element"When the following config values are set as admin:| maxsections | 4 | moodlecourse |And I am on "Course 1" course homepageAnd I should see "You have reached the maximum number of sections allowed for a course."