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

As a Page Creator I would like to approve a draft from the Page Admin and the preview draft page

    Details

      Description

      Intro/Context:

      The goal of this story is to let a user with view update pages permissions and above (Updating the page) to approve a draft page:

      • from the Page Admin/Page Tree.
      • from the "preview draft" page (see LPS-139064)

      Note that this story won't be backported and will be delivered to the customer as a hotfix (7.2). will be delivered only to 7.2

      Please consult this document for a best understanding of the proposal: https://docs.google.com/spreadsheets/d/1jHXYQ2yCircPAkA3QirCK28dW9hGmCR3pg8ES2648rQ/edit?usp=sharing ** 

      Requirements

      "Approve draft" action from the Page Admin (kebab menu in the miller columns):

      • this feature will be visible even if Staging is not switched on.
      • There will be an option in the kebab menu on the page's administration page to Approve Draft
      • When clicking on that option, the draft will be automatically approved and so the page will get the same status as when clicking the "Publish" button in the edit mode. 
      • It may be necessary to add a warning message that will be addressed in a separate story: (TBC)

      "Approve draft" button from the Preview draft page:

      • this feature will be visible ONLY if Staging is switched on
      • there will be a new "Approve Draft" button in the "preview draft" page, next to the Publish to live button
      • the Publish to live button will be disabled until the approve draft button is hit
      • When the user clicks on the "Approve Draft" button, then the page will get the same status as when clicking the "Publish" button in the edit mode. 
      • If the user goes back to the admin page or closes the tab, the status of the page will remain as draft

      Acceptance Criteria

       

      • Given a site where Staging is not active
      • When a user with view update pages permissions clicks on the kebab menu on the page's administration page
      • Then an Option "Approve Draft" shows

      • Given a site where Staging is not active
      • When a user with the right permissions clicks on the "Approve Draft" option
      • Then the drafted version of the page gets published 

      -

      • Given a site where Staging is active
      • When a user with view update pages permissions clicks on the kebab menu on the page's administration page
      • Then an Option "Approve Draft" shows

      • Given a site where Staging is active
      • When a user with the right permissions clicks on the "Approve Draft" option
      • Then the drafted version of the page gets published 

      -- 

      • Given the "preview draft" view on a site where Staging is active
      • Then the user sees an Approve draft button next to the Publish to live button, and the Publish to live button is disabled

      -

      • Given the Approve draft button next to the Publish to live button
      • When the user clicks on it
      • Then the Publish to live button is enabled, and the page is no longer set as "Draft"

      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?
      A page creator could approve a draft of the content page via Pages admin when staging is not active Critical Manual TBD TBD Yes
      A Page creator can not see the options ”Approve Draft" and “Preview Draft” on the Pages admin menu when a draft has been approved Critical Manual TBD TBD Yes
      A Page creator can not see the options ”Approve Draft" and “Preview Draft” on the Pages admin menu when a draft has no content Medium Manual TBD TBD Yes
      A Page viewer can not see the options ”Approve Draft" and “Preview Draft” on the Pages admin menu when staging is not active Medium Manual TBD TBD Yes
      A page creator could approve a draft of the content page via Pages admin when staging is active Critical Manual TBD TBD Yes
      A Page viewer can not see the options ”Approve Draft" and “Preview Draft” on the Pages admin menu when staging is active Critical Manual TBD TBD Yes
      A page creator could approve a draft from draft preview when staging is active Critical Manual TBD TBD Yes
      A page creator could not approve a draft from draft preview when staging is not active High Manual TBD TBD Yes
      A Page creator can not see the options ”Approve Draft" and “Preview Draft” on the Pages admin menu in life Critical Manual TBD TBD Yes

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jurgen.kappler Jürgen Kappler
              Reporter:
              tarik.demnati Tarik Demnati (Inactive)
              Engineering Assignee:
              Jürgen Kappler
              Recent user:
              Julia Molano
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.2.X