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-105447 Item selector in content pages not working correctly for file entries
        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 web content articles created with a specific structure(Can display specific content type using itemSubtype)

      1. Add a basic web content article
      2. Add a web content structure with a specific field and call it "Color"
      3. Create a web content using "Color" with a title and specific color
      4. Create a fragment with this configuration:
        {
            "fieldSets": [
        		{
        		"fields": [
        			{
        			"name": "itemSelector1",
        			"type": "itemSelector",
        			"label": "Web Content Structure Color Test",
        			"typeOptions": {
        				"itemType" : "com.liferay.journal.model.JournalArticle",
        				"itemSubtype": "data-ddmstructurekey(whatever it is for your structure)"
        			     }
        			}
        		   ]
        	     }
        	]
        }
        
      5. And this HTML:
        <div class="fragment_wc1">
          [#if configuration.itemSelector1.content??]
            ${itemSelector1Object.getTitle()}
            ${itemSelector1Object.getContent()}
          [/#if]
        </div>
        
      6. Add a new masters page and add your created fragment to the page
      7. Click on the fragment configuration
      8. Assert you can only select a web content if it has been made with structure "Color"
      9. Select your created web content
      10. Assert the web content is displayed correctly(depending on your html configuration)

      Case 3:
      Can only select Documents and Media(Can display specific content type using itemType)

      1. Add a new document with a title and an image
      2. Create a fragment with this configuration:
        {
            "fieldSets": [
        		{
        		"fields": [
        			{
        			"name": "itemSelector1",
        			"type": "itemSelector",
        			"label": "Title",
        			"typeOptions": {
        				"itemType" : "com.liferay.portal.kernel.repository.model.FileEntry"
        			     }
        			}
        		   ]
        	     }
        	]
        }
        
      3. And this HTML
        <div class="fragment_title">
          [#if configuration.itemSelector1.title??]
             ${configuration.itemSelector1.title}
          [/#if]
        </div>
        
      4. Add a new masters page and add your created fragment to the page
      5. Click on the fragment configuration
      6. Assert you can only select/upload something from Documents and Media
      7. Select your document entry
      8. Assert it is displayed correctly(depending on your html configuration - in this case the title should display)

      Case 4:
      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)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package