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

Chore: Add e2e Thumbnail tests for large doc #959

Merged
merged 3 commits into from
Mar 14, 2019

Conversation

ConradJChan
Copy link
Contributor

No description provided.

@boxcla
Copy link

boxcla commented Mar 13, 2019

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

jstoffan
jstoffan previously approved these changes Mar 13, 2019
test/integration/document/Thumbnails.e2e.test.js Outdated Show resolved Hide resolved
test/integration/document/Thumbnails.e2e.test.js Outdated Show resolved Hide resolved
test/integration/document/Thumbnails.e2e.test.js Outdated Show resolved Hide resolved

return cy.get('@foundThumbnail');
};

const showDocumentPreview = ({ enableThumbnailsSidebar } = {}) => {
cy.showPreview(token, fileId, { enableThumbnailsSidebar });
cy.getPreviewPage(1);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this not already the default behavior of Preview if no page number options are passed in?

const showDocumentPreview = ({ enableThumbnailsSidebar } = {}) => {
cy.showPreview(token, fileId, { enableThumbnailsSidebar });
cy.getPreviewPage(1);
cy.contains('The Content Platform for Your Apps');
cy.contains('IN THE HOUSE OF REPRESENTATIVES');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this needs to be checked each time we load the document. Maybe just in a single test?

jstoffan
jstoffan previously approved these changes Mar 14, 2019
@ConradJChan ConradJChan merged commit 6557229 into box:master Mar 14, 2019
@ConradJChan ConradJChan deleted the thumbnail-e2e branch March 14, 2019 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants