-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Aria-atomic="true" missing on error container #27386
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
Aria-atomic="true" missing on error container #27386
Conversation
Hi @bradleybrecher. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
962aba7
to
8ea6167
Compare
I can confirm that it's a good idea to wrap all messages into the |
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.
@bradleybrecher. Thank you for your contribution. According to the new definition of done all changes should be covered by automated tests. I would recommend covering this change by MFTF test that will check that aria-atomic
tag is present in case of error/success message on the page. You can use the following example of the selector that shows how to create a proper selector and assert it using seeElement
command.
magento2/app/code/Magento/Indexer/Test/Mftf/Section/AdminIndexManagementSection.xml
Line 18 in 3773134
<element name="successMessage" type="text" selector="//*[@data-ui-id='messages-message-success']" timeout="120"/> |
Thank you.
d8b6434
to
5794de0
Compare
5794de0
to
8f08efe
Compare
@magento run all tests |
@magento run all tests |
Hi @engcom-Charlie. I would still recommend using a separate test case instead of modifying test selectors. My concern is if I hope, I described both cases clear :) |
Hi @rogyar, do you mean it should be a new mftf test or add a selector check to some already written test? |
Hi @engcom-Charlie. My recommendation was to introduce a new MFTF test that will go to the corresponding page and check that Thank you! |
@bradleybrecher thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository. |
✔️ QA Passed Precondition: have Cart price rule with discount code; Manual testing scenario:
Actual Result: ✔️ The success message is shown on the page
Actual Result: ✔️ The error message is shown on the page
Actual Result: ✔️ The success message is shown on the page
Actual Result: ✔️ The error message is shown on the page |
@magento run all tests |
Hi @rogyar, thank you for the review. |
Hi @engcom-Charlie. Cold you move this PR to the correct status, please? pull-request-dashboard-manager don't trust me in my decisions :) Thank you |
Hi @bradleybrecher, thank you for your contribution! |
Description (*)
Issue : Aria-atomic="true" is missing on error container
Summary: The page contains an error container made with the WAI-ARIA
role="alert"
attribute, but it does not contain a WAI-ARIA attribute that will make sure all assistive technology can read the error message after more than one invalid submission.Fix: To make sure that all assistive technologies will read the error message after more than one invalid submission, added the WAI-ARIA attribute
aria-atomic="true"
to the error container tag.Related Pull Requests
N/A
Fixed Issues (if relevant)
N/A
Precondition:
have Cart price rule with discount code;
Manual testing scenario:
Expected Result: ✔️ The success message is shown on the page
Expected Result: ✔️ The error message is shown on the page
Expected Result: ✔️ The success message is shown on the page
Expected Result: ✔️ The error message is shown on the page
Questions or comments
N/A
Contribution checklist (*)
Resolved issues: