Configured integration in Stores -> Configuration -> System -> Adobe Stock Integration fieldset
Steps to reproduce (*)
Admin user is logged in to admin panel
Adobe Stock API credentials are saved in configuration
User has Licensed and Unlicensed images in Media Gallery
User navigate to Content - Media - Media Gallery
Media Gallery is opened
User clicks Upload Image button
"Open Files" window appears
User select valid images. (jpeg, png, gif. Less than 2MB size each)
User click Open button from "Open Files" window
Assert that success message appears "Successfully uploaded an image"
Asserts that the successfully uploaded images exist in Media Gallery
User navigate to Content - Media - Media Gallery
Media Gallery is opened
User clicks Filters button
User sees filtering options by "Uploaded Date", "Modification Date", "License Status", "Source"
Assert that the default value for "Source" filter is "All"
User click on drop-down under "Source"
Assert that the available options are "All", "Adobe Stock", "Uploaded Locally"
User selects Adobe Stock from Source dropdown
User clicks Apply Filters button
Assert that the "Active filters: Source: Adobe Stock" is applied
Assert that only images added from Adobe Stock are displayed on the grid
User clicks Filters button
User click on drop-down under "Source"
User selects Uploaded Locally from Source dropdown
User clicks Apply Filters button
Assert that the "Active filters: Source:" has changed to "Uploaded Locally"
Assert that only images Uploaded locally are displayed on the grid, no Adobe Stock images
User clicks on the cross X near the Source filter
Assert that the Active filters is cleared
Assert that all the images are displayed on Media Gallery grid
Preconditions (*)
Steps to reproduce (*)
Admin user is logged in to admin panel Adobe Stock API credentials are saved in configuration User has Licensed and Unlicensed images in Media Gallery User navigate to Content - Media - Media Gallery Media Gallery is opened User clicks Upload Image button "Open Files" window appears User select valid images. (jpeg, png, gif. Less than 2MB size each) User click Open button from "Open Files" window Assert that success message appears "Successfully uploaded an image" Asserts that the successfully uploaded images exist in Media Gallery User navigate to Content - Media - Media Gallery Media Gallery is opened User clicks Filters button User sees filtering options by "Uploaded Date", "Modification Date", "License Status", "Source" Assert that the default value for "Source" filter is "All" User click on drop-down under "Source" Assert that the available options are "All", "Adobe Stock", "Uploaded Locally" User selects Adobe Stock from Source dropdown User clicks Apply Filters button Assert that the "Active filters: Source: Adobe Stock" is applied Assert that only images added from Adobe Stock are displayed on the grid User clicks Filters button User click on drop-down under "Source" User selects Uploaded Locally from Source dropdown User clicks Apply Filters button Assert that the "Active filters: Source:" has changed to "Uploaded Locally" Assert that only images Uploaded locally are displayed on the grid, no Adobe Stock images User clicks on the cross X near the Source filter Assert that the Active filters is cleared Assert that all the images are displayed on Media Gallery grid
Note (*)
Test on Cucumber Studio - https://studio.cucumber.io/projects/131313/test-plan/folders/1337102/scenarios/4760144