-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Cleanup, refactor and cover with tests section-config module #25764
Cleanup, refactor and cover with tests section-config module #25764
Conversation
Hi @krzksz. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
Hi @krzksz, |
@magento give me 2.3-develop instance |
Hi @krzksz. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @krzksz, here is your Magento instance. |
c95b8b3
to
3459150
Compare
@magento run all tests |
Hi @ptylek, thank you for the review.
|
dev/tests/js/jasmine/tests/app/code/Magento/Customer/frontend/js/section-config.test.js
Outdated
Show resolved
Hide resolved
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.
1 tiny comment, but everything else looks good. Thank you for cleanup and especially for covering it with the unit test.
3459150
to
5be754b
Compare
Hi @VladimirZaets, thank you for the review. |
✔️ QA Passed |
Functional tests CE - not successful on remote test server, |
Hi @krzksz, thank you for your contribution! |
Description (*)
I decided to create this PR as a follow up to my previous attempt at fixing errors that were caused by 3rd party modules doing POST requests or requesting customer data directly before the module was initialized by
data-mage-init
.I also added unit tests for all the public methods and to make sure no errors are thrown if some code incorrectly calls the module before is has a chance to initialize.
Fixed Issues (if relevant)
Manual testing scenarios (*)
TypeError: sections is undefined
is being thrown without this changes.Questions or comments
Contribution checklist (*)