Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@core @core_blockFeature: Block removal via modalIn order to remove blocksAs a teacherI need to use a modal to confirm the block to deleteBackground:Given the following "courses" exist:| fullname | shortname | category || Course 1 | C1 | 0 |And the following "blocks" exist:| blockname | contextlevel | reference | pagetypepattern | defaultregion || search_forums | Course | C1 | course-view-* | side-pre |And I log in as "admin"And I am on "Course 1" course homepage with editing mode on@javascriptScenario: Removing a block via modal should remove the block on the pageGiven I open the "Search forums" blocks action menuWhen I click on "Delete Search forums block" "link" in the "Search forums" "block"Then "Delete block?" "dialogue" should existAnd I click on "Delete" "button" in the "Delete block?" "dialogue"And I wait to be redirectedAnd "Search forums" "block" should not exist@javascriptScenario: Cancel removing a block via modal should retain the block on the pageGiven I open the "Search forums" blocks action menuWhen I click on "Delete Search forums block" "link" in the "Search forums" "block"Then "Delete block?" "dialogue" should existAnd I click on "Cancel" "button" in the "Delete block?" "dialogue"And I should not see "Delete block?"And "Search forums" "block" should exist