Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions cypress/e2e/attachments.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,13 +339,16 @@ describe('Test all attachment insertion methods', () => {
})

it('Create a new whiteboard file as an attachment', () => {
const check = (documentId, fileName) => {
const check = (documentId, dirname, fileName) => {
cy.log(
'Check the attachment is visible and well formed',
'Check a preview is inserted for the whiteboard attachment',
documentId,
fileName,
)
return cy.get('.preview .widget-file.whiteboard').should('be.visible')
expect(fileName).to.match(/\.whiteboard$/)
// The widget inside the preview is rendered by the files app,
// so only check that one is there, not how it looks
return cy.get('.preview .widget-file').should('exist')
}

cy.visit('/apps/files')
Expand Down
4 changes: 2 additions & 2 deletions src/css/print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
// NcModal uses fixed, which will be cropped when printed
position: absolute !important;

.modal-header {
// Hide modal header (close button)
.modal-header, .viewer__settings {
// Hide modal header (close button) and viewer settings button
display: none !important;
}
.modal-wrapper {
Expand Down
Loading