Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@block @block_glossary_random @javascriptFeature: Add the glossary random block when main feature is disabledIn order to add the glossary random block to my courseAs a teacherIt should be added to courses only if the glossary module is enabled.Background:Given the following "courses" exist:| fullname | shortname | format || Course 1 | C1 | topics |And the following "blocks" exist:| blockname | contextlevel | reference | pagetypepattern | defaultregion || glossary_random | Course | C1 | course-view-* | site-post |Scenario: The glossary random block is displayed even when glossary module is disabledWhen I log in as "admin"And I navigate to "Plugins > Activity modules > Manage activities" in site administrationAnd I click on "Disable Glossary" "icon" in the "Glossary" "table_row"And I am on "Course 1" course homepage with editing mode onThen "Random glossary entry" "block" should existScenario: The glossary random block can be removed even when glossary module is disabledWhen I log in as "admin"And I am on "Course 1" course homepage with editing mode onAnd I open the "Random glossary entry" blocks action menuAnd I click on "Delete Random glossary entry block" "link" in the "Random glossary entry" "block"And "Delete block?" "dialogue" should existAnd I click on "Cancel" "button" in the "Delete block?" "dialogue"And "Random glossary entry" "block" should existWhen I navigate to "Plugins > Activity modules > Manage activities" in site administrationAnd I click on "Disable Glossary" "icon" in the "Glossary" "table_row"And I am on "Course 1" course homepage with editing mode onAnd I open the "Random glossary entry" blocks action menuAnd I click on "Delete Random glossary entry block" "link" in the "Random glossary entry" "block"And I click on "Delete" "button" in the "Delete block?" "dialogue"Then "Random glossary entry" "block" should not exist