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

As a content author, I want to go to see the page /edit the content when clicking on the title

    Details

      Description

      Motivation

      After the user's test carried out in the LPS-117343 epic, we've confirmed that users expect to visit the page of the content when clicking on the title. Additionally, for those contents that have not an associated display page, we will do the title lead to the web content editor.

      Technical Requirements

      • When the web content has an associated display page and it has an approved status, even if the user has permission to edit it, the title will lead him to the page view, unless it has also a draft version of which the user is its owner (see next)
      • When the web content has a draft version and the user is its owner, the title will lead him to the web content editor regardless of whether it has an associated display page or not.
      • When the web content has only a Scheduled status, and the user has permissions to edit it, he will be led to the web content editor regardless of whether it has a DPT or not.
      • When the web content has not an associated display page and the user has permission to edit it, the title will lead him to the web content editor
      • When the user can see the “View” option, s/he will follow the same behavior that when the user clicks in the view action, even if there is an option for editing too; when s/he can see the "Edit" option, and there's no “View” option, then s/he will follow the same behavior that when s/he click in the edit action.
        • The only exception to this rule is the case when an APPROVED and a DRAFT versions coexist, and the “Edit” option prevails over the “View” action.
      • The case when the web content has not an associated web page and the user has not permission to edit it will be tackled in a different story.
      • The case of web contents in Pending status will be tackled in a different story

      Design

      https://www.figma.com/file/dxHZl52WvhiAJ2R0xCZ7Nm/LPS-121658-see-the-page-edit-the-content-when-clicking-on-the-title?node-id=1%3A56

      Acceptance Criteria

      Please consider the general case: when the user can see the "View" option, s/he will be led to the View mode, even if there is an option for editing too; when s/he can see the "Edit" option, and there's no "view" option, then s/he will be led to the web content editor. The only exception to this rule is the case when an approved and a draft versions coexist, and the edit option prevails over the view option.

      • Given the content dashboard
      • When the user clicks on the title of an approved web content with an associated DPT
      • Then s/hes led to the page view

      • Given a content with a draft version in the content dashboard
      • When the user is its owner
      • Then s/hes led to the web content editor

      • Given a content with no associated DPT
      • When the user has editing permissions 
      • Then s/hes led to the web content editor

      • Given a content with scheduled status
      • When the user has permission to edit and clicks on the title
      • Then s/hes led to the web content editor

      • Given a content with pending or scheduled status
      • When the user has no permission to edit and clicks on the title
      • Then nothing happens besides that the tooltip shows

      • Given a content with no associated DPT
      • When the user hasn't editing permissions 
      • Then nothing happens besides that the tooltip shows

      Test Scenarios

      AC ID Test Strategy Test Scenarios Is it covered by FrontEnd ? (JS-Unit) Is it covered by BackEnd? (unit or integration) Poshi?
      01 High When a user with edit permissions clicks on the title of a content in status Approved with associated DPT, the user is led to the page view NO NO  
      02 High When a user with no edit permissions clicks on the title of a content in status Approved with associated DPT, the user is led to the page view NO NO  
      03 Medium When a user with edit permissions (owner) clicks on the title of a content in status Approved with no associated DPT, the user is led to the web content editor NO NO  
      04 Low When a user with no edit permissions (or not owner) clicks on the title of a content in status Approved with no associated DPT, nothing happens besides that the tooltip shows NO NO  
      05 Medium When a user with edit permissions(owner) clicks on the title of a content in status Draft, associated DPT or not, the user is led to web content editor NO NO  
      06 Medium When a user with edit permissions(owner) clicks on the title of a content in status Pending, associated DPT or not, the user is led to web content editor NO NO  
      07 Medium When a user with edit permissions(owner) clicks on the title of a content in status Scheduled, associated DPT or not, the user is led to web content editor NO NO  
      08 Low When a user is not owner of a web content in status Draft, Pending or Scheduled, this web content will not appear in the Content Dashboard NO NO  

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-qa Support QA
              Reporter:
              julia.molano Julia Molano
              Engineering Assignee:
              Cristina Gonzalez
              Recent user:
              Julia Molano
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  Master