-
Notifications
You must be signed in to change notification settings - Fork 28
Comparison table drag and drop feedback #2064
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
Conversation
…omparison-d-n-d-feddback
| @@ -0,0 +1,3 @@ | |||
| export const idToNodeNode = (id: string) => | |||
| // eslint-disable-next-line unicorn/prefer-query-selector | |||
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 is needed to pass Windows tests. When not using getElementById we need a CSS.escape because of all the funky ids we have in both the experiments table and plots. CSS.escape does not seem to create a valid id query on Windows unfortunately.
julieg18
left a comment
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.
Looks good to me!
| dragAndDrop( | ||
| headerB, | ||
| // eslint-disable-next-line testing-library/no-node-access | ||
| headerD.parentElement?.parentElement || headerD, |
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.
[Q] Can we follow up and wrap these calls in a function so we don't have eslint-disable all through the tests?
// eslint-disable-next-line testing-library/no-node-access
headerD.parentElement?.parentElement || headerD
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.
limit them to a single place like we try to do when using any
|
Code Climate has analyzed commit 0480689 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (85% is the threshold). This pull request will bring the total coverage in the repository to 96.7% (0.0% change). View more on Code Climate. |
First 2 tasks of #1604
Screen.Recording.2022-07-19.at.1.31.44.PM.mov