Description
Preconditions (*)
- Installed Magento with Adobe Stock Integration
- Configured integration in Stores -> Configuration -> System -> Adobe Stock Integration fieldset
Description
The whole test case should be performed with one single image
Steps to reproduce (*)
Admin user is logged in to admin panel
Navigate to cms/page page
Click Add New Page button
Expand Content fieldset
Click Show/Hide Editor button
Click Insert Image ... button
Click Search Adobe Stock button
User expands image preview
User click Save Preview
Click Confirm button
Image appears in Media Gallery
Go to Catalog/Products
Click Add Product
Fill in all the required fields
User expands Content tab
Click Show/Hide Editor button
Click "Insert Image..." button
User selects the previously saved image by clicking on it
User clicks Add Selected button
the image appeared in Content description
Use Saves Product
Navigate to Cms Pages
User clicks Add New Page button
User types in a valid "Page Title"
User expands Content
User click "insert/edit image" (wysiwyg)
User clicks Search near the Source field
Enhanced Media Gallery is opened
User select the previously used image by clicking on it
User clicks Add Selected button
Link is added to source field
User click Ok in "Insert/edit image" window
Image appeared in Editor
User saves the Page
Navigate to Catalog > Categories
User clicks Add Root Category button
User types Category Name
User expands Content tab
User clicks Select from Gallery button
Media Gallery is opened
User selects the previously saved image by clicking on it
User clicks Add Selected button
Category image appeared in Content
User Saves category
Navigate to Content - Elements - Blocks
User clicks Add New Block button
User fills in all the required fields
Click Show/Hide Editor button
Click Insert Image ... button
Enhanced Media Gallery is opened
User select the previously used image by clicking on it
User clicks Add Selected button
Assert that the image is added to Editor
User Saves the Block
User navigate to Content - Media - Media Gallery
Media Gallery is opened
User select the previously used image by clicking on it
User click three dots in the bottom right of the image
User select View Details
User clicks Delete Image button
Assert that user sees a "Delete image" confirmation message
Assert that the user is warned that the image is used in 1 Category, 1 Page, 1 Product, 1 Block
User clicks Delete Image button
Assert that the image is removed without any errors
Note (*)
Story - #1310
GitHub issue - #1390
PR - #1401
Test on the Cucumber Studio - https://studio.cucumber.io/projects/131313/test-plan/folders/1320712/scenarios/4843896