Details
-
Testing
-
Status: Closed
-
Minor
-
Resolution: Completed
-
None
-
None
-
None
-
5
-
LIMA | QA Sprint 18
Description
Automate test cases against this requirement:
Given an asset library connected to a site When an admin configures a media gallery widget on a page And selects a folder from an asset library Then the documents stored in the folder are shown, taking into account the appropriate permissions.
For example if a document in an AL is only able to be viewed by a site member, then it should not be able to be viewed in MG by a guest if the AL is connected to it.
Scenarios 1: An image stored in asset library folder cannot be viewed by a guest without permissions Via MG on a connected site
DepotPermissions#CannotViewImageInMGAsGuest
Test Steps:
- Add an asset library > Go to DM
- Add a folder > add an Image > Remove related permissions of guest
- Edit the asset library to connect a site
- Go to the site > Add a widget page with media gallery
- Configure the MG widget and select the asset library folder as the root folder
- Logout
- Access the site page
- Assert the Image stored in asset library does not display
Scenarios 2: An image stored in asset library folder can be edited by a user with permissions Via MG on a connected site
DepotPermissions#CanEditImageInMG
Test Steps:
- Add an asset library > Go to DM
- Add a folder > add an Image > Remove related permissions of both guest and user
- Add a new user
- Add a regular role > Define permissions under media gallery
- Add Document > Update and View
- Assign the new user to the regular role
- Edit the asset library to connect a site
- Go to the site > Add a widget page with media gallery
- Configure the MG widget and select the asset library folder as the root folder
- Logout > Login in as new user
- Access the site page
- Edit the Image stored in asset library
- Go to DM of asset library
- Assert the Image title updated
Scenarios 3: An image stored in asset library folder can be deleted by a user with permissions Via MG on a connected site
DepotPermissions#CanDeleteImageInMG
Test Steps:
- Add an asset library > Go to DM
- Add a folder > add an Image > Remove related permissions of both guest and user
- Add a new user
- Add a regular role > Define permissions under media gallery
- Add Document > Delete and View
- Assign the new user to the regular role
- Edit the asset library to connect a site
- Go to the site > Add a widget page with media gallery
- Configure the MG widget and select the asset library folder as the root folder
- Logout > Login in as new user
- Access the site page
- Delete the Image stored in asset library
- Go to DM of asset library
- Assert the Image does not display
Scenarios 4: An image stored in asset library folder can be viewed by a user with permissions Via MG on a connected site
DepotPermissions#CanAddImageToFolderViaMG
Scenarios 5: An image can be added to asset library folder by a user with permissions Via MG on a connected site
DepotPermissions#CanAddImageToFolderViaMG
Test Steps:
- Add a new user
- Add an asset library > Go to DM
- Add a folder > add an Image > Remove related permissions of guest
- Edit the asset library to connect a site
- Go to the site > Add a widget page with media gallery
- Configure the MG widget and select the asset library folder as the root folder
- Logout > Login as the new user
- Access the site page
- Assert the Image stored in asset library display
- Add a another image
- Login as Test Test
- Go to asset library folder
- Assert the new image display
Attachments
Issue Links
- split from
-
LPS-135678 Allow selecting content stored in an Asset Library from the media gallery
-
- Closed
-