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

fix(archive): Reset vertical scroll when navigating folders #1172

Merged
merged 3 commits into from
Feb 5, 2020

Conversation

mxiao6
Copy link
Contributor

@mxiao6 mxiao6 commented Feb 5, 2020

No description provided.

@mxiao6 mxiao6 requested a review from a team as a code owner February 5, 2020 18:34
@boxcla
Copy link

boxcla commented Feb 5, 2020

Verified that @mxiao6 has signed the CLA. Thanks for the pull request!

jstoffan
jstoffan previously approved these changes Feb 5, 2020
Copy link
Collaborator

@jstoffan jstoffan left a 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?

jstoffan
jstoffan previously approved these changes Feb 5, 2020
table.scrollTo(0, 50);

const tableTop = table.getBoundingClientRect().top;
cy.get('.ReactVirtualized__Table__row').then($rows => {
Copy link
Collaborator

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?

Copy link
Collaborator

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.

@@ -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',
Copy link
Collaborator

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?

@mergify mergify bot merged commit b072491 into box:master Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants