Deleting a Display Page Template when it is being used is not an authorized action (by default). To help the user manage a DPT we would like to provide the user the possibility to remove a relation between the DPT and the content.
Deletion of DPT
Given the user wants to delete of a Display Page Template (DPT) set as Default
When the user tries to delete a DPT set as the Default Display Page template
Then the Display Page Template gets deleted and all contents associated to this DPT are unassigned.
- Success case (default DPT)
- Pop up saying :"Are you sure you want to delete the default Display Page Template? All related display pages will be deleted"
Given the user wants to delete of a Display Page Template (DPT) used as Special Display Page Template (from a Content)
When the user tries to delete a DPT associated as Special Display Page Template
Then the user gets an Error message preventing him to delete the DPT.
Assign / Unassign a DPT
Given the user wants to delete of a Display Page Template and is looking at the DPT view usage page
When the user looks at the Content list associated to Display Page Template
Then the user can:
- Unassign the relation of a DPT with the content using "Unassign" action inside
- A warning should show : "Are you sure you do not want to set a Display Page Template for this?"
- Assign to default Display Page Template: "Assign to default ([DPT name])"
- "Are you sure you want to use the default display page template (DFLT DPT) for this."
When the user has successfully removed a link to DPT
Then the user can see:
- Success message after action took place:
- "Successfully Unassigned display page template ([DPT name])"
When the user has finished
Then the user stays on the same page and get access to the back button to return to anterior page
|Test Scenarios||Test Strategy||Kind of test||Is it covered by FrontEnd ? (JS-Unit)||Is it covered by BackEnd ? (unit or integration)||Could it be covered by POSHI?|
|For web content mapped specific DPT, Unassign and Set to Default Display Page via view usage, could delete display page template successfully||Critical||Manual||No||No||Yes|
|For web content mapped specific DPT, Unassign and do not Set Display page via view usage, could delete display page template successfully||Critical||Manual||No||No||Yes|
|Unassign and Set to Default Display Page via view usage, could set content display page to the default one||Hign||Manual||No||Yes||Yes|
|Unassign and do not Set Display page, could remove web content display page setting||Medium||Manual||No||Yes||Yes|
|For web content mapped default DPT, Unassign and do not Set Display page via view usage, could Delete Display page template successfully||Critical||Manual||No||No||Yes|
|For document mapped specific DPT, could check multiple checkboxes beside the web contents||Hign||Manual||No||No||Yes|
|For web content mapped specific DPT, could check all checkboxes beside the web contents||Medium||Manual||No||No||Yes|
|For blog mapped specific DPT, Unassign and Set to Default Display Page via view usage, could set content display page to the default one with no display page template||Medium||Manual||No||No||Yes|