-
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
Chore: Add e2e Thumbnail tests for large doc #959
Conversation
Verified that @ConradJChan has signed the CLA. Thanks for the pull request! |
|
||
return cy.get('@foundThumbnail'); | ||
}; | ||
|
||
const showDocumentPreview = ({ enableThumbnailsSidebar } = {}) => { | ||
cy.showPreview(token, fileId, { enableThumbnailsSidebar }); | ||
cy.getPreviewPage(1); |
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.
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'); |
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.
Not sure if this needs to be checked each time we load the document. Maybe just in a single test?
No description provided.