-
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
Issue #27925, moved the submit button to the inside of the <form> #28172
Issue #27925, moved the submit button to the inside of the <form> #28172
Conversation
Placing the submit button inside the `<form id="purchaseorder-form"...></form>` makes implicit submission possible
Hi @vestman. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
@magento give me test instance |
Hi @vestman. Thank you for your request. I'm working on Magento instance for you |
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.
Hello @vestman, thank you for your contribution. Due to Magento Definition of Done the changes should be covered by tests. Could you please cover your fix by an automated test? I think in this particular case the Functional test is preferable.
Thank you!
Working on MFTF test |
Added MFTF tests. |
@magento run all tests |
@magento run all tests |
@magento run all tests |
✔️ QA Passed Precondition: Enable "Purchase Order" as a payment method Manual testing scenario:
After: ✔️ The form is submitted on the Enter keyboard and the order is placed |
Hi @gabrieldagama, thank you for the review. |
@gabrieldagama seems like now we have incorrect status |
Hi @vestman, thank you for your contribution! |
Description (*)
Placing the submit button inside the
<form id="purchaseorder-form"...></form>
makes implicit submission[1] possible without altering any JS.[1] - https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#implicit-submission
Related Pull Requests
https://github.com/magento/partners-magento2b2b/pull/417
Fixed Issues (if relevant)
Manual testing scenarios (*)
Expected result
The form should be submitted (and validated) on keyboard Enter. Order is placed.
Questions or comments
Contribution checklist (*)