-
Type:
Technical Testing
-
Status: Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Fragment Administration
-
Labels:None
-
Sprint:S01E02 - Giants Enigma, S01E03 - Floating Bottle, S01E04 - Turtles Swamp
Bugs found:
- PASS
- To Do
- FAIL
- Impeditive:
Ticket Title QA Status ? ?
- Not impeditive:
Ticket Title QA Status ? ?
Case 1:
Can only select Documents and Media of type image or jpeg(Can display specific content type using itemMimeType)
- Add a document type to the documents and media admin with a text field
- Add two new documents using that document type, each with an image file(one of type image/jpeg and another of any other type)
- 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": ["image/jpeg"] } } ] } ] }
- And this HTML:
<div class="fragment_img"> ${configuration.itemSelector1} </div>
- Add a new masters page and add your created fragment to the page
- Click on the fragment configuration
- Assert you can only select/upload the image/jpeg type image from your specific document type
- Select your uploaded(type image/jpeg) image
- Assert it is displayed correctly(depending on your html configuration)