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

Fix#AC-2494 No indication of required input fields (pattern: Required… #3961

Merged
merged 17 commits into from
Nov 18, 2022

Conversation

RaghavendraTirumalasetti
Copy link
Contributor

@RaghavendraTirumalasetti RaghavendraTirumalasetti commented Sep 21, 2022

… fields)

Description

Reproduction Steps

Locations (representative sample):

Shopping Bag
Checkout - Shipping Information
Checkout - Payment

  • Checkout - Confirmation / Create an Account
    Sign In
  1. Visually inspect form elements

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

  • 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] Fix#AC-2494 No indication of required input fields (pattern: Required… #3991: Fix#AC-2494 No indication of required input fields (pattern: Required…

@pwa-studio-bot
Copy link
Collaborator

pwa-studio-bot commented Sep 21, 2022

Messages
📖

Associated JIRA tickets: AC-2494.

📖 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 3f7119f

@anthoula
Copy link
Contributor

@magento create issue from PR

@anthoula anthoula added the version: Patch This changeset includes backwards compatible bug fixes. label Nov 14, 2022
Copy link
Contributor

@anthoula anthoula left a 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?

Copy link
Contributor

@anthoula anthoula left a 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',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
id: 'Form.Email',
id: 'global.emailRequired',

@@ -147,6 +159,10 @@ const CreateAccount = props => {
validatePassword
])}
validateOnBlur
aria-label={formatMessage({
id: 'Form.Password',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
id: 'Form.Password',
id: 'global.passwordRequired',

@dpatil-magento
Copy link
Contributor

run cypress

@pwa-test-bot
Copy link

pwa-test-bot bot commented Nov 17, 2022

Successfully started codebuild job for cypress

@pwa-studio-bot
Copy link
Collaborator

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 to update their address book:
    • CypressError: Timed out retrying after 60000ms: `cy.wait()` timed out waiting `60000ms` for the 1st request to the route: `gqlSignInAfterCreateMutation`. No request ever occurred.

      https://on.cypress.io/wait

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 3f7119f

@dpatil-magento dpatil-magento merged commit 68eadb7 into magento:develop Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:venia-ui Progress: done version: Patch This changeset includes backwards compatible bug fixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Issue] Fix#AC-2494 No indication of required input fields (pattern: Required…
5 participants