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

As a Marketer, I want to be able to create a segment when creating a new experience

    Details

      Description

      Motivation

      This feature allows a marketer to define an audience as she is creating an Experience. This way the creation of content workflow is not interrupted and segments can be created as they're needed instead of beforehand.

      Acceptance Criteria

      How the user interacts with the Experiences Dropdown:

      • No segments available and user has no permissions:
        • Given the user does not have permission to create new segments and there are no segments available
        • Then the user cannot find the Experiences Dropdown menu
      • Segments available but user has no permissions:
        • Given the user does not have permission to create new segments and there are segments available
          • When user clicks on New Experience button:
            • Then the New Experience modal should be shown.
            • Then the Experience name input should be empty.
            • Then the Experience audience selector should offer the available segments.
            • Then the Create New Segment button should not be displayed.
      • User has permissions but no segments are available:
        • Given the user has permission to create new segments and there are no segments available
        • When the user clicks on New Experience button:
          • Then the New Experience modal should be shown.
          • Then the Experience name input should be empty.
          • Then the Experience audience selector should be disabled
          • Then the Create New Segment button should be available.
            • When clicking on the New Segment button:
              • Then the Create New Segment view should be shown.
      • User has permissions and segments are available:
        • Given the user has permission to create new segments and there are segments available:
        • When the user clicks on New Experience button:
          • Then the New Experience modal should be shown.
          • Then the Experience name input should be empty.
          • Then the Experience audience selector should be enabled
          • Then the Create New Segment button should be available.
            • When clicking on the New Segment button:
              • Then the Create New Segment view should be shown.

      Once the user is creating the new Segment:

      • User cannot save the segment:
        • Given the Segment is not ready to be saved (has no title and/or empty conditions filled).
        • Then Save button should be disabled.
      • User saves the segment:
        • Given the Segment is ready to be saved (has title and a condition filled).
        • When the user clicks on the Save button:
          • Then user should be redirected to the page it was editing at the state she left off
          • Then the Experience Audience selector has this just created experience preselected.
          • Then the just created experience is listed in the options among the Experience Audience selector.
          • Then the just created experience is listed when the visiting People > Segments
      • User cancels/closes segments edition but aborts this action:
        • Given the Segment is ready to be saved (has title and a condition filled).
        • When the user clicks the Cancel button button:
          • Then the user is prompted with a warning that she'll drop any changes to the experience.
            • When the user rejects
              • Then the prompt should bring the user back at the Segment editor. 
      • User cancels/closes segments edition and confirms this action:
        • Given the Segment is ready to be saved (has title and a condition filled).
        • When the user clicks the Cancel button button:
          • Then the user is prompted with a warning that she'll drop any changes to the experience.
            • When the user accepts the prompt:
              • Then user should be redirected to the page it was editing at the state she left off.
              • Then the Experience Audience selector should have its previous value.

      Design

      The final proposal for the design is the prototype-open-context version.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  7.2.X
                  Master