-
Type:
Technical Task
-
Status: Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: Master
-
Component/s: Content Page Experience Personalization, Segments Editor
-
Labels:None
-
Sprint:SP | Sprint 5 | Jan4 - Jan18, SP | Sprint 6 | Jan21 - Feb1, SP | Sprint 7 | Feb4 - Feb15
-
Git Pull Request:
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"
- relates
-
LPS-102884 When the user edit the control variant, the content of the variant is replaced
- Closed