Details

      Description

      This is how the config will look like:

      {
        "com.liferay.fragment.entry.processor.editable.EditableFragmentEntryProcessor": {
          "editable-fragment-id": {
            "defaultValue": "Livingstone Hotels and Resorts",
            "segment-id-0": {       
              "pt_BR": "Portuguese variation",
              "es_ES": "Spanish variation",
              "en_US": "English Variation"
            },
            "segment-id-1": {
              "en_US": "English variation segment-id-1",
              "es_ES": "Spanish variation segment-id-1"
            }
          }
        }
      }
      

      Assuming that en_US is the default locale:

      • Given the configuration
        When I belong to segment 1 and my language is Spanish
        Then I see content "Spanish variation segment-id-1"
      • Given the configuration
        When I belong to segment 1 and my language is Portuguese
        Then I see content "English variation segment-id-1"
      • Given the configuration
        When I belong to segment 2 and my language is Portuguese
        Then I see content "Portuguese Variation"
      • Given the configuration
        When I belong to segment 2 and my language is Chinese
        Then I see content "English Variation"

      defaultValue is displayed only when no segment configuration is available.

      Next cases are not possible since a user at least belongs to the default segment

      • Given the configuration
        When I don't belong to any segments* and my language is Spanish
        Then I see content "Spanish variation"
      • Given the configuration
        When I don't belong to any segments and my language is Chinese
        Then I see content "Livingstone Hotels and Resorts"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chan Brian Chan
              Reporter:
              david.arques David Arques
              Recent user:
              David Arques
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 39 weeks, 2 days ago

                  Packages

                  Version Package
                  Master