-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add product feedback page #17945
Add product feedback page #17945
Conversation
Codecov Report
@@ Coverage Diff @@
## main #17945 +/- ##
==========================================
- Coverage 51.03% 51.01% -0.02%
==========================================
Files 1739 1737 -2
Lines 86848 86987 +139
Branches 7916 7750 -166
==========================================
+ Hits 44323 44378 +55
- Misses 38641 38728 +87
+ Partials 3884 3881 -3
|
Notifying subscribers in CODENOTIFY files for diff 32dda4a...f3cc0b0.
|
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.
Code changes LGTM 👍
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.
LGTM otherwise! Awesome that you took action to improve the tests 💯
authenticatedUser: Pick<AuthenticatedUser, 'email'> | ||
} | ||
|
||
const signUpForm = new URL('https://share.hsforms.com/1tkScUc65Tm-Yu98zUZcLGw1n7ku') |
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.
Just noticed this: This feels a bit weird because this URL is mutated on every render but shared between all instances of a component. This could cause issues when rendering it multiple times, e.g. in tests
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.
This shouldn't cause issues as set
will just override any previous values but I agree this is a bit weird, PR to fix: https://github.com/sourcegraph/sourcegraph/pull/18171
Overview
This PR:
jest-dom
matchers for use withtesting-library
and update tests to use these where suitable. These are more declarative and also provide additional tests. For example,toBeVisible
checks the existence of the element but also ensure that it is not hidden from the user in someway (e.g.display: none
). I have created an eslint plugin PR to our shared config to encourage the use of these withtesting-library
: feat: add plugin-jest-dom eslint-config#188.Screenshots
Progress
Closes https://github.com/sourcegraph/sourcegraph/issues/17646
Closes https://github.com/sourcegraph/sourcegraph/issues/17647