Details
-
Story
-
Resolution: Done
-
High
-
None
-
None
Description
Default behavior
- The checkbox for the main location is always disabled
- The main location cannot be deleted. In order to delete the main location, another location has to be assigned as the main location
- The first location created is selected as the main location
Scenarios
Delete a location from the ‘Content locations’ table
Given I have multiple locations in the ‘Content locations' table
When I select a location other than the main location by checking the checkbox
Then the delete button in the table header is enabled
Given the delete button in the table header is enabled
When I click the delete button
Then I see a modal window to confirm the deletion
And on Confirmation, the location is deleted from the table and from the sub-items list of the content item’s parent for the deleted path
And on Cancel, the modal window closes
Delete multiple locations from the ‘Content locations’ table at a time
Given I have multiple locations in the content locations table
When I select multiple locations other than the main location by checking the checkbox
Then the delete button is enabled
Given the delete button is enabled
When I click on the delete button
Then I see a modal window to confirm the deletion
And on Confirmation, the locations are deleted from the table and from the sub-items list of the content item’s parent for all the deleted paths
And on Cancel, the modal window closes