Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-121199

As a DPT creator I need to remove relations to contents from DPT so that I can delete a DPT page

    Details

      Description

      Intro/Context:

      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

      Case1

      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"

      -

      Case2

      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

      Case3

      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."

      -

      Case4

      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 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

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              david.gutierrez David Gutiérrez Mesa
              Reporter:
              tarik.demnati Tarik Demnati
              Engineering Assignee:
              SE Support
              Recent user:
              David Gutiérrez Mesa
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  Master