Skip to content
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

AC-2792::Common inputs lack autocomplete attributes (pattern) #3785

Merged
merged 3 commits into from
Jul 14, 2022

Conversation

glo71317
Copy link
Collaborator

@glo71317 glo71317 commented Apr 26, 2022

Description

Common inputs lack autocomplete attributes (pattern)

Locations (representative sample):

Checkout - Shipping Information
Checkout - Payment

  1. Manually inspect markup for inputs in Guest Checkout form for autocomplete attributes.

Actual Behavior
The following common input fields lack a way to communicate purpose:

Guest Checkout - Shipping Information form:

Email
First Name
Country
Street Address
Street Address 2
City
State
Zip / Postal Code
Phone Number

Checkout - Payment form:

Cardholder Name
Card Number
Expiration Date
CVV
When an input field's purpose is not communicated (such as by use of the autocomplete attribute), users of assistive technology or users with cognitive disabilities can have trouble understanding a field's purpose. Users with limited mobility may have difficulty entering data that they commonly enter, such as address fields and phone numbers.

Expected Behavior
Ensure that common input fields communicate purpose – this is generally provided by the autocomplete values (HTML 5.3). Common fields are those included in this list: https://www.w3.org/TR/WCAG21/#input-purposes.

Related Issue

Closes https://jira.corp.magento.com/browse/AC-2792.

Acceptance

Verification Stakeholders

Specification

Verification Steps

Checklist

  • I have added tests to cover my changes, if necessary.
  • I have added translations for new strings, if necessary.
  • I have updated the documentation accordingly, if necessary.

Resolved issues:

  1. resolves [Issue] AC-2792::Common inputs lack autocomplete attributes (pattern) #3838: AC-2792::Common inputs lack autocomplete attributes (pattern)

@pwa-studio-bot
Copy link
Collaborator

pwa-studio-bot commented Apr 26, 2022

Fails
🚫 A version label is required. A maintainer must add one.
Messages
📖

Associated JIRA tickets: AC-2792.

📖 DangerCI Failures related to missing labels/description/linked issues/etc will persist until the next push or next pr-test build run (assuming they are fixed).
📖

Access a deployed version of this PR here. Make sure to wait for the "pwa-pull-request-deploy" job to complete.

Generated by 🚫 dangerJS against e72407d

@m2-community-project m2-community-project bot moved this from Ready for Review to Review in Progress in Pull Request Progress Apr 27, 2022
@m2-community-project m2-community-project bot moved this from Review in Progress to Ready for Review in Pull Request Progress May 2, 2022
@supernova-at
Copy link
Contributor

@magento create issue from PR

@jasonrpoteet
Copy link
Contributor

run all tests

@pwa-test-bot
Copy link

pwa-test-bot bot commented May 26, 2022

Successfully started codebuild job for the following test suites:

lighthouse-desktop
lighthouse-mobile
pr-test
scaffold-pwa
cypress

@pwa-studio-bot
Copy link
Collaborator

pwa-studio-bot commented May 26, 2022

Fails
🚫

node failed.

🚫

Cypress tests in the following files did not pass 😔. All tests must pass before this PR can be merged

  • user should be able search with different inputs:
  • user can fill and submit payment form and place order with default badge position:
  • should display Default Store View and USD currency by default:
    should display French text and EUR currency accross app if French Store View is selected:
    should show USD currency across app if it is selected inside French Store View:
  • user should be able to filter results in Category and Search pages:
    • CypressError: The application redirected to https://pr-3785.pwa-venia.com/search.html?query=Tops&page=1&price%5Bfilter%5D=100-200%2C100_200&category_uid%5Bfilter%5D=Tops%2C8 more than 20 times. Please check if it's an intended behavior.

      If so, increase redirectionLimit value in configuration.

  • should be able to edit a configurable product and place an order:

Log

ERROR ON TASK: cypressTests


Error:  Danger had errors running. See message(s) above for more details.
danger-results://tmp/danger-results.json

Generated by 🚫 dangerJS against e72407d

Copy link
Contributor

@jasonrpoteet jasonrpoteet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to update unit tests to pass

@m2-community-project m2-community-project bot moved this from Reviewer Approved to Changes Requested in Pull Request Progress May 26, 2022
@OneCricketeer
Copy link
Contributor

The instance crashed which is why the tests time out.

@haal9000
Copy link
Contributor

run pr-deploy

@pwa-test-bot
Copy link

pwa-test-bot bot commented May 26, 2022

Successfully started codebuild job for pr-deploy

@haal9000
Copy link
Contributor

The instance health went to severe as it was not able to find the PR image in ECR. Did a pr-deploy to build and deploy the PR image

anthoula
anthoula previously approved these changes Jul 12, 2022
@dpatil-magento
Copy link
Contributor

run pr-deploy

@pwa-test-bot
Copy link

pwa-test-bot bot commented Jul 13, 2022

Successfully started codebuild job for pr-deploy

@dpatil-magento
Copy link
Contributor

run pr-deploy

@pwa-test-bot
Copy link

pwa-test-bot bot commented Jul 13, 2022

Successfully started codebuild job for pr-deploy

jasonrpoteet
jasonrpoteet previously approved these changes Jul 13, 2022
@dpatil-magento dpatil-magento changed the base branch from GL-web-accessibility to develop July 13, 2022 19:18
@dpatil-magento dpatil-magento dismissed stale reviews from jasonrpoteet and anthoula July 13, 2022 19:18

The base branch was changed.

@dpatil-magento
Copy link
Contributor

run cypress

@pwa-test-bot
Copy link

pwa-test-bot bot commented Jul 13, 2022

Successfully started codebuild job for cypress

@dpatil-magento
Copy link
Contributor

run cypress

@pwa-test-bot
Copy link

pwa-test-bot bot commented Jul 14, 2022

Successfully started codebuild job for cypress

@dpatil-magento
Copy link
Contributor

Cypress Failures are on develop not related to this pr.

@dpatil-magento dpatil-magento merged commit 5ff3802 into magento:develop Jul 14, 2022
@m2-community-project m2-community-project bot moved this from Reviewer Approved to Done in Pull Request Progress Jul 14, 2022
@aprimard
Copy link

aprimard commented Aug 9, 2022

Description

Common inputs lack autocomplete attributes (pattern)

Locations (representative sample):

Checkout - Shipping Information Checkout - Payment

1. Manually inspect markup for inputs in Guest Checkout form for autocomplete attributes.

Actual Behavior The following common input fields lack a way to communicate purpose:

Guest Checkout - Shipping Information form:

Email First Name Country Street Address Street Address 2 City State Zip / Postal Code Phone Number

Checkout - Payment form:

Cardholder Name Card Number Expiration Date CVV When an input field's purpose is not communicated (such as by use of the autocomplete attribute), users of assistive technology or users with cognitive disabilities can have trouble understanding a field's purpose. Users with limited mobility may have difficulty entering data that they commonly enter, such as address fields and phone numbers.

Expected Behavior Ensure that common input fields communicate purpose – this is generally provided by the autocomplete values (HTML 5.3). Common fields are those included in this list: https://www.w3.org/TR/WCAG21/#input-purposes.

Related Issue

Closes https://jira.corp.magento.com/browse/AC-2792.

Acceptance

Verification Stakeholders

Specification

Verification Steps

Checklist

* I have added tests to cover my changes, if necessary.

* I have added translations for new strings, if necessary.

* I have updated the documentation accordingly, if necessary.

Resolved issues:

1. [x]  resolves [[Issue] AC-2792::Common inputs lack autocomplete attributes (pattern) #3838](https://github.com/magento/pwa-studio/issues/3838): AC-2792::Common inputs lack autocomplete attributes (pattern)

Hello,
From what I see, the values of autocomplete attribute are not all valid. For example, the autocomplete="First Name" does not exist. The value should probably be "given-name" in this case. It's also a best practice to write these values in lower cases.

It could be worth checking them to see if they are all valid. https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

[Issue] AC-2792::Common inputs lack autocomplete attributes (pattern)
10 participants