Details

    • Type: Technical Testing
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Sprint:
      S01E02 - Giants Enigma, S01E03 - Floating Bottle, S01E04 - Turtles Swamp

      Description

      Bugs found:

       - PASS
       - To Do
       - FAIL

      • Impeditive:
        Ticket Title QA Status
        ? ?
        LPS-106081 Web content displayed with specific itemType returns html with content
        LPS-106084 Can't select document with specific mimeType in custom fragment
      • Not impeditive:
        Ticket Title QA Status
        ? ?

      Case 1:
      Can only select web content articles( Can display specific content type using itemType)

      1. Create a basic web content with a title, summary, and content
      2. Add a blog and a document
      3. Create a fragment with this configuration:
        {
            "fieldSets": [
        		{
        		"fields": [
        			{
        			"name": "itemSelector1",
        			"type": "itemSelector",
        			"label": "Web Content",
        			"typeOptions": {
        				"itemType" : "com.liferay.journal.model.JournalArticle"
        			     }
        			}
        		   ]
        	     }
        	]
        }
        
      4. And this HTML:
        <div class="fragment_wc">
          [#if configuration.itemSelector1.content??]
            ${itemSelector1Object.getTitle()}
            ${itemSelector1Object.getDescription()}
            ${itemSelector1Object.getContent()}
          [/#if]
        </div>
        
      5. Add a new masters page and add your created fragment to the page
      6. Click on the fragment configuration
      7. Assert you can only select a web content
      8. Select your created web content
      9. Assert the web content is displayed correctly(depending on your html configuration)

      Case 2:
      Can only select Documents and Media of type img or jpg(Can display specific content type using itemMimeType)

      1. Add a document type to the documents and media admin with a text field
      2. Add two new documents using that document type, each with an image file(one of type img/jpg and another of any other type)
      3. Create a fragment with this configuration:
        {
            "fieldSets": [
        		{
        		"fields": [
        			{
        			"name": "itemSelector1",
        			"type": "itemSelector",
        			"label": "Image",
        			"typeOptions": {
        				"itemType" : "com.liferay.portal.kernel.repository.model.FileEntry",
        			        "itemSubtype": DLFileEntryType-fileEntryTypeID"(whatever it is for structure),
        				"mimeTypes": ["img/jpg"]
        			     }
        			}
        		   ]
        	     }
        	]
        }
        
      4. And this HTML:
        <div class="fragment_img">
          ${configuration.itemSelector1}
        </div>
        
      5. Add a new masters page and add your created fragment to the page
      6. Click on the fragment configuration
      7. Assert you can only select/upload the img/jpg type image from your specific document type
      8. Select your uploaded(type img/jpg) image
      9. Assert it is displayed correctly(depending on your html configuration)

      Case 3:
      Can only select blog entries( Can display specific content type using itemType)

      1. Create a blog with the required fields
      2. Add a basic web content and a document
      3. Create a fragment with this configuration:
        {
            "fieldSets": [
        		{
        		"fields": [
        			{
        			"name": "itemSelector1",
        			"type": "itemSelector",
        			"label": "Blog",
        			"typeOptions": {
        				"itemType" : "com.liferay.blogs.model.BlogsEntry"
        			     }
        			}
        		   ]
        	     }
        	]
        }
        
      4. And this HTML:
        <div class="fragment_blog">
          [#if configuration.itemSelector1.content??]
            ${itemSelector1Object.getTitle()}
            ${itemSelector1Object.getContent()}
          [/#if]
        </div>
        
      5. Add a new masters page and add your created fragment to the page
      6. Click on the fragment configuration
      7. Assert you can only select a blog
      8. Select your created blog
      9. Assert the blog is displayed correctly(depending on your html configuration)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package