AutorÃa | Ultima modificación | Ver Log |
@core @core_blockFeature: The context of a block can always be returned to it's original state.In order to revert actions when configuring blocksAs an adminI need to be able to return the block to original stateScenario: Add and configure a block to display on every page and revert backGiven the following "courses" exist:| fullname | shortname | category || Course 1 | C1 | 0 |And the following "activities" exist:| activity | name | intro | course | section | idnumber || assign | Assignment1 | Description | C1 | 1 | assign1 || assign | Assignment2 | Description | C1 | 1 | assign1 |And I log in as "admin"When I am on "Course 1" course homepage with editing mode onAnd I add the "Tags" blockThen I should see "Tags" in the "Tags" "block"And I navigate to course participantsAnd I configure the "Tags" blockAnd I set the following fields to these values:| Display on page types | Any page |And I press "Save changes"And I am on "Course 1" course homepageAnd I follow "Assignment1"And I configure the "Tags" blockAnd I set the following fields to these values:| Display on page types | Any assignment module page |And I press "Save changes"And I should see "Tags" in the "Tags" "block"And I am on "Course 1" course homepageAnd "Tags" "block" should not existAnd I navigate to course participantsAnd "Tags" "block" should not existAnd I am on "Course 1" course homepageAnd I follow "Assignment2"And I should see "Tags" in the "Tags" "block"And I configure the "Tags" blockAnd I set the following fields to these values:| Display on page types | Any page |And I press "Save changes"And I am on "Course 1" course homepageAnd I should see "Tags" in the "Tags" "block"And I navigate to course participantsAnd I should see "Tags" in the "Tags" "block"