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

Include warning message to inform the user when there is not a change between Control and variant

    Details

      Description

      Motivation

      Currently it is possible to start a test without making any change in the variant page.
      This will cause that the results of the test are not accurate. It would be nice to let the users know that they are going to run a test and both control and the variant are the same. A warning message could solve this issue.

      Design

      https://www.figma.com/file/DVMaMfH4zGcNImNulW7u8B/LPS-127213-AB-Testing-easier-and-faster-to-use?node-id=70%3A69

      Technical Requirements

      * When the user tries to leave the editing mode by hitting Save variant without doing any changes, a warning message will show: You need to make some changes on the variant to properly run the A/B test. 

Are you sure that you want to save the variant without making any changes? Cancel / Save and exit

        • Cancel will lead to the editing mode again
        • Save and exit will save the variant and lead the user to the view mode of the variant
          * If the user tries to leave the editing mode by hitting Discard variant after doing some changes, a warning message will show: The changes you made on your variant will be lost. 

Are you sure that you want to discard the variant and exit without saving your changes? Cancel / Discard and exit
        • Cancel will lead to the editing mode again
        • Discard and exit will lead the user to the view mode of the control variant
      • A warning message will show in the variant that has no changes: 0 changes. Edit variant to run test.
      • When the users try to run the test without making changes in any of the variants, a warning will show: Make some changes on the variant [VariantName] 

      NOTE: Consider eliminating the Discard button and then show the warning when saving without changes and place the delete variant option in the sidebar

      Acceptance Criteria

      No Changes in Variants - Confirmation message

      • Given an AB Test with one
      • When the variant is not edited and When the button "Run test" is clicked
      • Then a confirmation message shows to inform the user that the variant was not edited and has no changes and ask them if they want to continue

      • Given an AB Test with more than one variants (apart form control)
      • When any of the variants is not edited and When the button "Run test" is clicked
      • Then a confirmation message shows to inform the user that the variant was not edited and has no changes

        Attachments

          Activity

            People

            Assignee:
            julia.molano Julia Molano
            Reporter:
            susana.vazquez Susana Vázquez
            Engineering Assignee:
            SE Support
            Recent user:
            Julia Molano
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package