-
Notifications
You must be signed in to change notification settings - Fork 9.4k
#1703: The deleted tags are not removed from Tags drop-down until the web page is refreshed #29400
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
#1703: The deleted tags are not removed from Tags drop-down until the web page is refreshed #29400
Conversation
…til the web page is refreshed - replaced outdated keywords after saving new details
Hi @yolouiese. 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 pull request @yolouiese , can you please cover this case with MFTF test
…eleted-tags-not-removed
…eleted-tags-not-removed
…til the web page is refreshed - covered MFTF test
…eleted-tags-not-removed
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 @yolouiese ! Please see my comments
* @param {String} id | ||
* @param {String} tags | ||
*/ | ||
removeCached: function (id, tags) { |
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.
I would simply remove cached image and rely on reloading from the backend to make sure frontend and backend are on the same page
<actionGroup ref="AdminEnhancedMediaGalleryUploadImageActionGroup" stepKey="uploadImage"> | ||
<argument name="image" value="ImageUpload"/> | ||
</actionGroup> | ||
<actionGroup ref="AdminEnhancedMediaGalleryImageDetailsEditActionGroup" stepKey="editImage"/> |
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.
I think AdminEnhancedMediaGalleryViewImageDetails
should be executed before this step
<actionGroup ref="AdminEnhancedMediaGalleryVerifyImageKeywordsActionGroup" stepKey="verifyAddedKeywords"> | ||
<argument name="keywords" value="UpdatedImageDetails.keyword"/> | ||
</actionGroup> | ||
<actionGroup ref="AdminEnhancedMediaGalleryVerifyImageKeywordsActionGroup" stepKey="verifyMetadataKeywords"> |
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.
Can you please also verify the removal of the keyword
…til the web page is refreshed - covered MFTF test
…til the web page is refreshed - covered MFTF test
@magento run all tests |
…eleted-tags-not-removed
…til the web page is refreshed - added verify removal of keyword MFTF test
@magento run all tests |
1 similar comment
@magento run all tests |
@@ -14,6 +14,7 @@ | |||
<element name="description" type="textarea" selector="#description"/> | |||
<element name="newKeyword" type="input" selector="[data-ui-id='keyword']"/> | |||
<element name="addNewKeyword" type="input" selector="[data-ui-id='add-keyword']"/> | |||
<element name="removeSelectedKeyword" type="button" selector="//span[contains(text(), '{{selectedKeywords}}')]/following-sibling::button[@data-action='remove-selected-item']" parameterized="true"/> |
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.
I believe only one keyword can be specified here
<element name="removeSelectedKeyword" type="button" selector="//span[contains(text(), '{{selectedKeywords}}')]/following-sibling::button[@data-action='remove-selected-item']" parameterized="true"/> | |
<element name="removeSelectedKeyword" type="button" selector="//span[contains(text(), '{{keyword}}')]/following-sibling::button[@data-action='remove-selected-item']" parameterized="true"/> |
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 @yolouiese ! Please see my comments on the naming. I think it can be improved a bit to make the action groups easier to reuse
<description>Remove Keywords on the Edit Details panel</description> | ||
</annotations> | ||
<arguments> | ||
<argument name="selectedKeywords"/> |
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.
I'd change the name and specify a type to make it more clear how to use this action group
<argument name="selectedKeywords"/> | |
<argument name="keyword" type="string"/> |
|
||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="AdminEnhancedMediaGalleryVerifyRemovedImageKeywordsActionGroup"> |
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.
<actionGroup name="AdminEnhancedMediaGalleryVerifyRemovedImageKeywordsActionGroup"> | |
<actionGroup name="AssetAdminEnhancedMediaGalleryAssetDetailsKeywordsAbsentActionGroup"> |
<description>Verifies removed image keywords on the View Details panel</description> | ||
</annotations> | ||
<arguments> | ||
<argument name="keywords"/> |
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.
<argument name="keywords"/> | |
<argument name="keywords" type="string"/> |
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="AdminEnhancedMediaGalleryVerifyRemovedImageKeywordsActionGroup"> | ||
<annotations> | ||
<description>Verifies removed image keywords on the View Details panel</description> |
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.
<description>Verifies removed image keywords on the View Details panel</description> | |
<description>Verifies that the passed comma-separated list of keywords are not present on the View Details panel</description> |
…eleted-tags-not-removed
@magento run all tests |
…til the web page is refreshed - added requested changes
Hi @sivaschenko, thank you for the review.
|
✔️ QA Passed Manual testing scenario |
…own until the web page is refreshed #29400
Hi @yolouiese, thank you for your contribution! |
Need to verify (*)
Description (*)
Replaced the outdated keywords after new image details have been saved
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)