Skip to content

Commit

Permalink
fixup! Add support for non-dav files
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst committed Aug 19, 2022
1 parent 7889522 commit 9514986
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions cypress/e2e/visual-regression.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,25 @@ describe('Visual regression tests ', function() {
it('Take test-card.png screenshot 2', function() {
cy.compareSnapshot('image2')
})

it('Take non-dav file screenshot', function() {
const fileInfo = {
filename: '/core/img/logo/logo.png',
basename: '/core/img/logo',
mime: 'image/png',
source: '/core/img/logo/logo.png',
etag: 'abc',
hasPreview: false,
fileid: 123,
}

cy.window().then((win) => {
win.OCA.Viewer.open({
fileInfo,
list: [fileInfo],
})
})

cy.compareSnapshot('non-dav')
})
})

0 comments on commit 9514986

Please sign in to comment.