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

PWA-213: [UNIT TEST] Email Validation on Signin, Create Acount, Forgot Password #2157

Merged
merged 7 commits into from
Feb 19, 2020

Conversation

tjwiebell
Copy link
Contributor

Description

Reviewed this task with team lead, and it turns out this feature should have never been implemented in the first place. There is little value in doing client-side validation, and the most we should do in our app is validate the email address isn't in use, which isn't currently possible with the form library we're using. He requested we strip this out, which we're doing in the scope of this task now. Article for reference: https://medium.com/hackernoon/the-100-correct-way-to-validate-email-addresses-7c4818f24643

Related Issue

  • [PWA-213] [UNIT TEST] Email Validation on Signin, Create Acount, Forgot Password

Acceptance

Verification Stakeholders

Specification

Verification Steps

For each of the forms that had this validation (SignIn, Forgot Password, Create Account, Checkout Shipping/Billing/Payment)

  1. Submit clean form and verify required validation still fires
  2. Enter an "invalid" email address in email address field and verify it no longer complains (eg. test@domain)

Screenshots / Screen Captures (if appropriate)

Checklist

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

…t Password

- Remove client-side email validation from app
- Fixup import order to adhere to coding guidelines
@tjwiebell tjwiebell added the version: Major This changeset includes incompatible API changes and its release necessitates a Major version bump. label Feb 10, 2020
@m2-community-project m2-community-project bot added this to Ready for Review in Pull Request Progress Feb 10, 2020
@PWAStudioBot
Copy link
Contributor

PWAStudioBot commented Feb 10, 2020

Messages
📖

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

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

Associated JIRA tickets: PWA-213.

Generated by 🚫 dangerJS against b038f24

supernova-at
supernova-at previously approved these changes Feb 11, 2020
@m2-community-project m2-community-project bot moved this from Ready for Review to Reviewer Approved in Pull Request Progress Feb 11, 2020
@supernova-at
Copy link
Contributor

✅ Code

Verification steps pass, except when I attempt enter "test@domain" for a shipping address during checkout and submit the form, I'm met with an error toast and the following console message:

Screen Shot 2020-02-11 at 9 47 58 AM

Is that in scope here or should we split it out into a separate issue?

@sirugh
Copy link
Contributor

sirugh commented Feb 11, 2020

IMO we should cover that here since we are "breaking" the current checkout flow.

@tjwiebell
Copy link
Contributor Author

IMO we should cover that here since we are "breaking" the current checkout flow.

Already on it, but may ping you tomorrow morning for some weirdness. Even though I'm catching these errors they're still hitting the error boundary and popping a toast 😢

@tjwiebell
Copy link
Contributor Author

@supernova-at I've resolved the uncaught exception issue in fac582c.

@jimbo This is ready for review if you wanted to give it a once over.

@dpatil-magento
Copy link
Contributor

QA Pass. After removing client side validation encountered bug in Billing information form. Which will be addressed as part of separate ticket.

@dpatil-magento dpatil-magento merged commit 6c6a770 into develop Feb 19, 2020
@m2-community-project m2-community-project bot moved this from Reviewer Approved to Done in Pull Request Progress Feb 19, 2020
@dpatil-magento dpatil-magento deleted the PWA-213-validation-tests branch February 19, 2020 17:58
@sirugh sirugh mentioned this pull request Apr 8, 2021
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:peregrine pkg:venia-ui Progress: approved version: Major This changeset includes incompatible API changes and its release necessitates a Major version bump.
Development

Successfully merging this pull request may close these issues.

None yet

5 participants