Details

      Description

      Create the test scenarios to validate the parent story, according to the Acceptance Criteria.

      Those test scenarios will be writing in the parent story.

      Test Cases

      Case 1:
      The freemarker in new fragment created in portal is not executed when disable freemarker

      1. Global Menu > Control Panel > System Settings > Page Fragments
      2. Virtual Instance Scope > FreeMarker Fragment Entry Processor
      3. Uncheck Enable FreeMarker
      4. Update
      5. Navigate to default site
      6. Product Menu > Design > Fragments
      7. Add a new collection
      8. Add a new fragment with the following codes
        	<div class="fragment_wc">
        		[#if configuration.itemSelectorName.content??]
        			${itemSelectorNameObject.getTitle()}
        			${itemSelectorNameObject.getDescription()}
        			${itemSelectorNameObject.getContent()}
        		[#else]
        			<div class="portlet-msg-info">The selected content will be shown here.</div>
        		[/#if]
        	</div>
        
        	{
        		"fieldSets": [
        			{
        				"fields": [
        					{
        						"label": "Web Content Title",
        						"name": "itemSelectorName",
        						"type": "itemSelector",
        						"typeOptions": {
        							"itemType" : "com.liferay.journal.model.JournalArticle"
        						}
        					}
        				]
        			}
        		]
        	}
        
      9. Assert freemarker codes are shown in fragment preview section
      10. Publish
      11. Add a page based on Blank
      12. Add the new fragment to page
      13. Assert the new fragment is shown in page
      14. Assert freemarker codes are shown in new fragment
      15. Publish the page
      16. Navigate to page in view mode
      17. Assert the new fragment is shown in page
      18. Assert freemarker codes are shown in new fragment

      Case 2:
      The freemarker in imported fragment is not executed when disable freemarker

      1. Global Menu > Control Panel > System Settings > Page Fragments
      2. Virtual Instance Scope > FreeMarker Fragment Entry Processor
      3. Uncheck Enable FreeMarker
      4. Update
      5. Copy a fragment zip file with freemarker codes to deploy folder
      6. Navigate to default site
      7. Add a page based on Blank
      8. Add the imported fragment to page
      9. Assert the imported fragment is shown in page
      10. Assert freemarker codes are shown in imported fragment

      Case 3:
      The freemarker in a copy of contributed fragment is not executed when disable freemarker

      1. Global Menu > Control Panel > System Settings > Page Fragments
      2. Virtual Instance Scope > FreeMarker Fragment Entry Processor
      3. Uncheck Enable FreeMarker
      4. Update
      5. Navigate to default site
      6. Product Menu > Design > Fragments
      7. Add a new collection
      8. Navigate to Basic Components collection
      9. Copy Card fragment to new collection
      10. Add a page based on Blank
      11. Add the copy fragment to page
      12. Assert the copy fragment is shown in page
      13. Assert freemarker codes are shown in copy fragment

      Case 4:
      The freemarker in contributed fragment is still executed when disable freemarker

      1. Global Menu > Control Panel > System Settings > Page Fragments
      2. Virtual Instance Scope > FreeMarker Fragment Entry Processor
      3. Uncheck Enable FreeMarker
      4. Update
      5. Navigate to default site
      6. Add a page based on Blank
      7. Add a Card fragment to page
      8. Assert the Card is shown in page
      9. Open browser console
      10. Assert the border-radius of <div class="card"> element is 0.1875rem
      11. Add a Tabs fragment to page
      12. Assert the Tabs is shown in page
      13. Open browser console
      14. Assert the <div class="tab-panel"> element contains tab1, tab2, tab3 and tab4 subelements
      15. Add a Content Display fragment to page
      16. Assert the Content Display is shown in page
      17. Click gear icon button > Plus icon > Documents and Media tab
      18. Click Select File > Upload an image > Add
      19. Assert the image is shown in Content Display instead of The selected content will be shown here.

        Attachments

          Activity

            People

            Assignee:
            manoel.cyreno Manoel Cyreno
            Reporter:
            manoel.cyreno Manoel Cyreno
            Recent user:
            Manoel Cyreno
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package