Delete this block and check that the delete message contains information about the original location and the display on page types. Check that the information regarding the block location and page types are the following: ('System','Any page').

Create another block on the front page and set the page context to 'Display on the front page and any pages added to the front page'.

Delete this block and check that the delete message contains information about the original location and the display on page types. Check that the information regarding the block location and page types are the same as what you configured ('Front page','Display on the front page and any pages added to the front page').

Enter a course and create a course wide block.

Set Display on page types to 'Any page'.

Delete this block and check that the delete message contains information about the original location and the display on page types. Check that the information regarding the block location and page types are the same as what you configured ('Course:XXXX','Any page').

Try deleting a block in an activity. Check that no additional error message is displayed.

Create a site wide block.
Set page contexts to 'Display throughout the entire site'.
Delete this block and check that the delete message contains information about the original location and the display on page types. Check that the information regarding the block location and page types are the following: ('System','Any page').
Create another block on the front page and set the page context to 'Display on the front page and any pages added to the front page'.
Delete this block and check that the delete message contains information about the original location and the display on page types. Check that the information regarding the block location and page types are the same as what you configured ('Front page','Display on the front page and any pages added to the front page').
Enter a course and create a course wide block.
Set Display on page types to 'Any page'.
Delete this block and check that the delete message contains information about the original location and the display on page types. Check that the information regarding the block location and page types are the same as what you configured ('Course:XXXX','Any page').
Try deleting a block in an activity. Check that no additional error message is displayed.

Description

After setting up a Front Page block set to 'Display throughout the site' (i.e. adding a sticky block), the block can be deleted from within a course (if the user is an admin) without any warning that this course-level editing is deleting a block from the entire site. This is in contrast to the 1.9 behaviour, where sticky blocks did not have editing buttons available within the course context.

Replication steps:
1. Log in as Admin.
2. Add a block to the Front Page.
3. Set block to be visible every where within the site.
4. Browse to a course.
5. Turn editing on.
6. Click the 'delete' button on the site wide block
-> Block disappears from the entire site.

1. Log in as Admin.
2. Add a block to the Front Page.
3. Set block to be visible every where within the site.
4. Browse to a course.
5. Turn editing on.
6. Click the 'delete' button on the site wide block
-> Block disappears from the entire site.

Description

After setting up a Front Page block set to 'Display throughout the site' (i.e. adding a sticky block), the block can be deleted from within a course (if the user is an admin) without any warning that this course-level editing is deleting a block from the entire site. This is in contrast to the 1.9 behaviour, where sticky blocks did not have editing buttons available within the course context.

After setting up a Front Page block set to 'Display throughout the site' (i.e. adding a sticky block), the block can be deleted from within a course (if the user is an admin) without any warning that this course-level editing is deleting a block from the entire site. This is in contrast to the 1.9 behaviour, where sticky blocks did not have editing buttons available within the course context.

*Replication steps:*
1. Log in as Admin.
2. Add a block to the Front Page.
3. Set block to be visible every where within the site.
4. Browse to a course.
5. Turn editing on.
6. Click the 'delete' button on the site wide block
-> Block disappears from the entire site.

# Create a site wide block.
# Set page contexts to 'Display throughout the entire site'.
# Enter a course and create a course wide block.
# Set Display on page types to 'Any page'.
# Try deleting both blocks. *_Ensure that an additional message is displayed when deleting these types of blocks (e.g. You are about to delete a block that appears throughout the site. Are you sure you want to do this?)._*
# Try deleting a block in an activity. *_Check that no additional error message is displayed._*

# Create a site wide block.
# Set page contexts to 'Display throughout the entire site'.
# Enter a course and create a course wide block.
# Set Display on page types to 'Any page'.
# Try deleting both blocks. *_Ensure that an additional message is displayed when deleting these types of blocks (e.g. You are about to delete a block that appears throughout the site. Are you sure you want to do this?)._*
# Try deleting a block in an activity. *_Check that no additional error message is displayed._*

# Create a site wide block.
# Set page contexts to 'Display throughout the entire site'.
# Enter a course and create a course wide block.
# Set Display on page types to 'Any page'.
# Try deleting both blocks. *_Ensure that an additional message is displayed when deleting these types of blocks (e.g. You are about to delete a block that appears everywhere below the following context X. Are you sure you want to do this?)._*
# Try deleting a block in an activity. *_Check that no additional error message is displayed._*

# Create a site wide block.
# Set page contexts to 'Display throughout the entire site'.
# Enter a course and create a course wide block.
# Set Display on page types to 'Any page'.
# Try deleting both blocks. *_Ensure that an additional message is displayed when deleting these types of blocks (e.g. You are about to delete a block that appears everywhere below the following context X. Are you sure you want to do this?)._*
# Try deleting a block in an activity. *_Check that no additional error message is displayed._*

# Create a site wide block.
# Set page contexts to 'Display throughout the entire site'.
# Enter a course and create a course wide block.
# Set Display on page types to 'Any page'.
# Try deleting both blocks. *_Ensure that the following message is displayed when deleting these types of blocks (You are about to delete a block that appears elsewhere... )._*
# Try deleting a block in an activity. *_Check that no additional error message is displayed._*

# Create a site wide block.
# Set page contexts to 'Display throughout the entire site'.
# Enter a course and create a course wide block.
# Set Display on page types to 'Any page'.
# Try deleting both blocks. *_Ensure that the following message is displayed when deleting these types of blocks (You are about to delete a block that appears elsewhere... )._*
# Try deleting a block in an activity. *_Check that no additional error message is displayed._*

# Create a site wide block.
# Set page contexts to 'Display throughout the entire site'.
#* *_Delete this block and check that the delete message contains information about the original location and the display on page types. Check that the information regarding the block location and page types are the following: ('System','Any page')._*
# Create another block on the front page and set the page context to 'Display on the front page and any pages added to the front page'.
#* *_Delete this block and check that the delete message contains information about the original location and the display on page types. Check that the information regarding the block location and page types are the same as what you configured ('Front page','Display on the front page and any pages added to the front page')._*
# Enter a course and create a course wide block.
# Set Display on page types to 'Any page'.
#* *_Delete this block and check that the delete message contains information about the original location and the display on page types. Check that the information regarding the block location and page types are the same as what you configured ('Course:XXXX','Any page')._*
# Try deleting a block in an activity. *_Check that no additional error message is displayed._*