-
Notifications
You must be signed in to change notification settings - Fork 9.4k
#1760: Media Gallery Page opened successfully if "Enhanced Media Gallery" disabled #29632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… grid page opened successfully if "Enhanced Media Gallery" disabled - redirect to 404 if enhanced media gallery config is disabled.
Hi @jmonteros422. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @jmonteros422 ! Can you please revert the changes for the Category grid page, only the Media Gallery page should not be acccesible.
Can you please also cover the changes by MFTF tests: 404 page should be returned trying to access media gallery by URL if it's disabled
… grid page opened successfully if "Enhanced Media Gallery" disabled - revert category grid no route redirect when media gallery is disabled, MFTF test coverage
@magento run all tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates @jmonteros422 ! Please see my comments
<testCaseId value="https://studio.cucumber.io/projects/131313/test-plan/folders/1337102/scenarios/5106786"/> | ||
<description value="Standalone Media Gallery Page should return 404 if Media Gallery is disabled"/> | ||
<severity value="CRITICAL"/> | ||
<group value="media_gallery_ui"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please intorduce a new media_gallery_ui_disabled
suite that will not enable the new media gallery (that suite does not need any before/after actions actually)
*/ | ||
--> | ||
|
||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please introduce this action group as app/code/Magento/Backend/Test/Mftf/ActionGroup/AssertAdminPageIs404ActionGroup.xml
… grid page opened successfully if "Enhanced Media Gallery" disabled - MFTF Apply PR suggestions
@magento run all tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updates @jmonteros422 ! Please see my comments
</annotations> | ||
<before> | ||
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> | ||
<actionGroup ref="AdminMediaGalleryEnhancedEnableActionGroup" stepKey="disableEnhancedMediaGallery"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no need to disable media gallery as it is disabled by default
<before> | ||
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> | ||
<actionGroup ref="AdminMediaGalleryEnhancedEnableActionGroup" stepKey="disableEnhancedMediaGallery"/> | ||
<actionGroup ref="AdminOpenStandaloneMediaGalleryActionGroup" stepKey="openStandaloneMediaGallery"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opening media gallery is actually part of the test, not the precondition
|
||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="AssertAdminPageIs404ActionGroup"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move the action group to Backend module (see the exact path in the comment from previous review)
… grid page opened successfully if "Enhanced Media Gallery" disabled - MFTF Apply PR suggestions
@magento run all tests |
@magento run Functional Tests EE |
Hi @sivaschenko, thank you for the review. |
✔️ QA Passed If thee New Media Gallery is disabled, the https://yourdomain.com/admin/media_gallery/media/index link leads to 404 Page not found Manual testing scenario - https://studio.cucumber.io/projects/131313/test-plan/folders/1337102/scenarios/5106786 |
…ed Media Gallery" disabled #29632
Hi @jmonteros422, thank you for your contribution! |
Description (*)
This PR will fixes issue magento/adobe-stock-integration#1760
Related Pull Requests
Fixed Issues (if relevant)
Preconditions (*)
Steps to reproduce (*)
https://yourdomain.com/admin/media_gallery/media/index
linkExpected result (*)
404 page
Questions or comments
Contribution checklist (*)