Details
-
Story
-
Resolution: None
-
High
-
None
-
None
Description
Note
As it works on eZ Publish, adding a location for a content item which is a container, will not add new locations for the sub-items
Context
We defined 2 behaviors for the scenario Adding an EXISTING location for a content item, we definitely have to discuss which one is easier / possible...
Scenarios
Adding a NEW location for a content item
Given I am logged into the eZ application And I am viewing the ‘Locations’ tab for the content item When I click on the ‘Add location’ button and launch the Universal Discovery Widget (UDW) And I select a content item (container) and confirm Then the new location is added to the 'Content locations’ table in the 'Locations' tab And the path displayed will be the path selected in the UDW plus name of the current content item When I navigate to the parent in the new location path Then I see the content item in the sub-items list
Adding multiple NEW locations for a content item
Given I am logged into the eZ application And I am viewing the ‘Locations’ tab for the content item When I click on the ‘Add location’ button and launch the Universal Discovery Widget (UDW) And I select a content item (container) and confirm Then the new location is added to the 'Content locations’ table in the 'Locations' tab And the paths displayed will be the path selected in the UDW plus name of the current content item When I navigate to the parent of each new location path Then I see the content item in the sub-items list
Adding an EXISTING location for a content item
Given I am logged into the eZ application And I am viewing the ‘Locations’ tab for the content item When I click on the ‘Add location’ button and launch the Universal Discovery Widget (UDW) And I select path which already exists in the ‘Content locations' table and confirm Then the UDW closes and I see a modal window with an alert ’%name_of_content_item% already exists at this location (%path_of_the_parent%)' When I click OK Then the modal window closes and no new location will be added to the ‘Content locations’ table in the ‘Locations’ tab
OR
Given I am logged into the eZ application And I am viewing the ‘Locations’ tab for the content item When I click on the ‘Add location’ button and launch the Universal Discovery Widget (UDW) And I select path which already exists in the ‘Content locations' table Then I see that the choose button is disabled with a tooltip message '%name_of_content_item% already exists at this location (%path_of_the_parent%)'