-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Gutenberg] Gallery refactor - Test upload completion processor #16721
[Gutenberg] Gallery refactor - Test upload completion processor #16721
Conversation
…ctored gallery block
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
Generated by 🚫 dangerJS |
var resultContent = galleryBlockContent | ||
|
||
resultContent = mediaJobs.reduce(into: resultContent) { (content, mediaJob) in |
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.
Maybe this was an error in extracting, we overwrite this immediately afterwards
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.
Nvm I see we use it on the RHS in the reducer
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 adding these tests Antonis! I tested the gallery upload flows manually with this PR, and also ran all the unit tests you've added, and everything is passing and working as expected. Nice work! 🎉
Description
This PR only adds tests to verify that the existing Gallery block upload completion processor can handle the refactored format. This adds to the existing tests for the Image and Gallery processors.
To test:
Run the upload completion processor unit tests.
Manual testing the existing Gallery block upload completion processor:
Regression Notes
Potential unintended areas of impact
N/A
What I did to test those areas of impact (or what existing automated tests I relied on)
N/A
What automated tests I added (or what prevented me from doing so)
Added tests under
GutenbergRefactoredGalleryUploadProcessorTests
PR submission checklist:
RELEASE-NOTES.txt
if necessary.