-
Notifications
You must be signed in to change notification settings - Fork 685
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
Fix#AC-2494 No indication of required input fields (pattern: Required… #3961
Conversation
|
@magento create issue from PR |
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 @RaghavendraTirumalasetti - Can you please add translations to all new strings?
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 @RaghavendraTirumalasetti ! Most of these can be global translation IDs.
@@ -99,6 +99,10 @@ const CreateAccount = props => { | |||
<TextInput | |||
field="customer.firstname" | |||
autoComplete="given-name" | |||
aria-label={formatMessage({ | |||
id: 'Form.fistname', |
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.
id: 'Form.fistname', | |
id: 'global.firstNameRequired', |
@@ -113,6 +117,10 @@ const CreateAccount = props => { | |||
<TextInput | |||
field="customer.lastname" | |||
autoComplete="family-name" | |||
aria-label={formatMessage({ | |||
id: 'Form.lastname', |
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.
id: 'Form.lastname', | |
id: 'global.lastNameRequired', |
@@ -127,6 +135,10 @@ const CreateAccount = props => { | |||
<TextInput | |||
field="customer.email" | |||
autoComplete="email" | |||
aria-label={formatMessage({ | |||
id: 'Form.Email', |
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.
id: 'Form.Email', | |
id: 'global.emailRequired', |
@@ -147,6 +159,10 @@ const CreateAccount = props => { | |||
validatePassword | |||
])} | |||
validateOnBlur | |||
aria-label={formatMessage({ | |||
id: 'Form.Password', |
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.
id: 'Form.Password', | |
id: 'global.passwordRequired', |
@@ -159,6 +159,10 @@ const CustomerForm = props => { | |||
id="customer_firstname" | |||
data-cy="CustomerForm-firstName" | |||
validate={isRequired} | |||
aria-label={formatMessage({ | |||
id: 'Form.fistname', |
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.
id: 'Form.fistname', | |
id: 'global.firstNameRequired', |
@@ -119,6 +123,10 @@ const CreateAccount = props => { | |||
mask={value => value && value.trim()} | |||
maskOnBlur={true} | |||
data-cy="customer-lastname" | |||
aria-label={formatMessage({ | |||
id: 'Form.lastname', |
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.
id: 'Form.lastname', | |
id: 'global.lastNameRequired', |
@@ -137,6 +145,10 @@ const CreateAccount = props => { | |||
mask={value => value && value.trim()} | |||
maskOnBlur={true} | |||
data-cy="customer-email" | |||
aria-label={formatMessage({ | |||
id: 'Form.Email', |
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.
id: 'Form.Email', | |
id: 'global.emailRequired', |
@@ -157,6 +169,10 @@ const CreateAccount = props => { | |||
mask={value => value && value.trim()} | |||
maskOnBlur={true} | |||
data-cy="password" | |||
aria-label={formatMessage({ | |||
id: 'Form.Password', |
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.
id: 'Form.Password', | |
id: 'global.passwordRequired', |
@@ -78,6 +78,10 @@ const SignIn = props => { | |||
field="email" | |||
validate={isRequired} | |||
data-cy="email" | |||
aria-label={formatMessage({ | |||
id: 'Form.Email', |
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.
id: 'Form.Email', | |
id: 'global.emailRequired', |
@@ -92,6 +96,10 @@ const SignIn = props => { | |||
autoComplete="current-password" | |||
isToggleButtonHidden={false} | |||
data-cy="password" | |||
aria-label={formatMessage({ | |||
id: 'Form.Password', |
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.
id: 'Form.Password', | |
id: 'global.passwordRequired', |
run cypress |
Successfully started codebuild job for |
LogERROR ON TASK: cypressTests
|
… fields)
Description
Reproduction Steps
Locations (representative sample):
Shopping Bag
Checkout - Shipping Information
Checkout - Payment
Sign In
Actual Behavior
There is no indication of which form fields are required. Examples include:
Module 05b - Shopping Bag
Module 06a - Checkout - Shipping Information
Module 06b - Checkout - Payment
Module 06c - Checkout - Confirmation / Create an Account
Module 07 - Sign In
Expected Behavior
Provide visual and programmatic instructions to indicate which fields are required.
Related Issue
Closes https://jira.corp.adobe.com/browse/AC-2494
Acceptance
Verification Stakeholders
Specification
Verification Steps
Test scenario(s) for direct fix/feature
Test scenario(s) for any existing impacted features/areas
Test scenario(s) for any Magento Backend Supported Configurations
Is Browser/Device testing needed?
Any ad-hoc/edge case scenarios that need to be considered?
Screenshots / Screen Captures (if appropriate)
Breaking Changes (if any)
Checklist
Resolved issues: