Details

    • Type: Technical Testing
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Bugs:
      - PASS
      - To Do
      - FAIL

      • Impeditive:
        Ticket Title QA Status
        ? ?
        LPS-124828 The value of localizable fragment configuration field is not responsive when change to untranslated language Verified
      • Not impeditive:
        Ticket Title QA Status
        ? ?

      Test Cases

      Case 1
      The localizable fragment configuration defined in default language will be popluated to all untranslated languages

      1. Add a new site
      2. Add a new fragment
      3. Type the following code in HTML section
         	<${configuration.headingLevel} class="component-heading mb-0 text-break" data-lfr-editable-id="element-text"
         		data-lfr-editable-type="text">
         		Heading Example
         	</${configuration.headingLevel}>
        
      4. Type the following code in CSS section
        	.fragment-heading-text-colored a {
        		color: inherit;
        	}
        {css}
        # Type the following code in JSON section
        {code:json}
        	{
        		"fieldSets": [
        			{
        				"fields": [
        					{
        						"dataType": "string",
        						"defaultValue": "h1",
        						"label": "heading-level",
        						"localizable": true,
        						"name": "headingLevel",
        						"type": "select",
        						"typeOptions": {
        							"validValues": [
        								{
        									"value": "h1"
        								},
        								{
        									"value": "h2"
        								},
        								{
        									"value": "h3"
        								},
        								{
        									"value": "h4"
        								},
        								{
        									"value": "h5"
        								},
        								{
        									"value": "h6"
        								}
        							]
        						}
        					}
        				]
        			}
        		]
        	}
        
      5. Publish
      6. Add a page based on Blank
      7. Add the new fragment to page
      8. Click the body of fragment > General tab
      9. Select the H3 in Heading Level field
      10. Change to sv-SE via language selector on control menu
      11. Assert the H3 is shown in Heading Level field
      12. Inspect the fragment element
      13. Assert component-heading is shown in h3 tags
      14. Repeat step 10-13 for other untranslated languages

      Case 2
      The localizable fragment configuration defined in default language won't affect settings in translated language

      1. Add a new site
      2. Add a new fragment
      3. Type the following code in HTML section
        	<${configuration.headingLevel} class="component-heading mb-0 text-break" data-lfr-editable-id="element-text"
        		data-lfr-editable-type="text">
        		Heading Example
        	</${configuration.headingLevel}>
        
      4. Type the following code in CSS section
        	.fragment-heading-text-colored a {
        		color: inherit;
        	}
        {css}
        # Type the following code in JSON section
        {code:json}
        	{
        		"fieldSets": [
        			{
        				"fields": [
        					{
        						"dataType": "string",
        						"defaultValue": "h1",
        						"label": "heading-level",
        						"localizable": true,
        						"name": "headingLevel",
        						"type": "select",
        						"typeOptions": {
        							"validValues": [
        								{
        									"value": "h1"
        								},
        								{
        									"value": "h2"
        								},
        								{
        									"value": "h3"
        								},
        								{
        									"value": "h4"
        								},
        								{
        									"value": "h5"
        								},
        								{
        									"value": "h6"
        								}
        							]
        						}
        					}
        				]
        			}
        		]
        	}
        
      5. Publish
      6. Add a page based on Blank
      7. Add the new fragment to page
      8. Change to es-ES via language selector on control menu
      9. Click the body of fragment > General tab
      10. Select the H3 in Heading Level field
      11. Change to en-US via language selector on control menu
      12. Assert the H1 is shown in Heading Level field
      13. Inspect the fragment element
      14. Assert component-heading is shown in h1 tags
      15. Repeat step 11-14 for other untranslated languages
      16. Change to en-US via language selector on control menu
      17. Select the H5 in Heading Level field
      18. Change to es-ES via language selector on control menu
      19. Assert the H1 is shown in Heading Level field
      20. Inspect the fragment element
      21. Assert component-heading is shown in h1 tags
      22. Change to sv-SE via language selector on control menu
      23. Assert the H5 is shown in Heading Level field
      24. Inspect the fragment element
      25. Assert component-heading is shown in h5 tags
      26. Repeat step 22-25 for other untranslated languages

        Attachments

          Activity

            People

            Assignee:
            david.gutierrez David Gutiérrez Mesa
            Reporter:
            david.gutierrez David Gutiérrez Mesa
            Recent user:
            David Gutiérrez Mesa
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package