-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Allow non-ASCII email domains in Chrome #2402
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2402 +/- ##
==========================================
+ Coverage 61.21% 61.34% +0.12%
==========================================
Files 239 239
Lines 8403 8405 +2
Branches 523 524 +1
==========================================
+ Hits 5144 5156 +12
+ Misses 2876 2866 -10
Partials 383 383
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
Reviewed 2 of 4 files at r1, 4 of 4 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @imnasnainaec)
src/components/Login/SignUpPage/SignUpComponent.tsx
line 23 at r2 (raw file):
// Chrome silently converts non-ASCII characters in a Textfield of type="email". // Use punycode.toUnicode() to convert them from punycode back to Unicode. const punycode = require("punycode/");
Why the JavaScript style import instead of
import punycode from "punycode/";
Code quote:
const punycode = require("punycode/");
src/components/PasswordReset/tests/ResetPage.test.tsx
line 54 at r2 (raw file):
}; const customRender = async (ui: ReactElement): Promise<void> => {
I think we want to keep the option to pass additional rendering options. This will make extending these tests less of a mystery to future maintainers. See https://testing-library.com/docs/react-testing-library/setup#custom-render
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.
Reviewable status: 5 of 6 files reviewed, 1 unresolved discussion (waiting on @jmgrady)
src/components/Login/SignUpPage/SignUpComponent.tsx
line 23 at r2 (raw file):
Previously, jmgrady (Jim Grady) wrote…
Why the JavaScript style import instead of
import punycode from "punycode/";
It doesn't have es6 module import support: mathiasbynens/punycode.js#116
src/components/PasswordReset/tests/ResetPage.test.tsx
line 54 at r2 (raw file):
Previously, jmgrady (Jim Grady) wrote…
I think we want to keep the option to pass additional rendering options. This will make extending these tests less of a mystery to future maintainers. See https://testing-library.com/docs/react-testing-library/setup#custom-render
Done.
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.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)
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.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)
Resolves #2230
This change is