-
Notifications
You must be signed in to change notification settings - Fork 116
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(archive): Reset vertical scroll when navigating folders #1172
Conversation
Verified that @mxiao6 has signed the CLA. Thanks for the pull request! |
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.
Worth writing a test?
table.scrollTo(0, 50); | ||
|
||
const tableTop = table.getBoundingClientRect().top; | ||
cy.get('.ReactVirtualized__Table__row').then($rows => { |
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.
Any way we can avoid using CSS classes here?
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.
I think so, yeah, since it's based on user-visible information. We do it in other tests, too.
test/support/constants.js
Outdated
@@ -2,6 +2,7 @@ Cypress.env({ | |||
// NOTE: The token used is a readonly token accessing public data in a demo enterprise. | |||
ACCESS_TOKEN: 'S8wjvjOL9GEK5VtXsQNVMOwSrx1g55oC', | |||
FILE_ID_ARCHIVE: '589625563707', | |||
FILE_ID_ARCHIVE_LONG: '611800378713', |
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.
It looks like we have FILE_ID_DOC_LARGE
. Can we rename to FILE_ID_ARCHIVE_LARGE
, as well?
No description provided.