diff --git a/cypress/integration/image.heic.spec.js b/cypress/integration/image.heic.spec.js deleted file mode 100644 index 69d62c893..000000000 --- a/cypress/integration/image.heic.spec.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * @copyright Copyright (c) 2019 John Molakvoæ - * - * @author John Molakvoæ - * @author Morris Jobke - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ - -import { randHash } from '../utils/' -const randUser = randHash() - -describe('Open image.heic in viewer', function() { - before(function() { - // Init user - cy.nextcloudCreateUser(randUser, 'password') - cy.login(randUser, 'password') - - // Upload test files - cy.uploadFile('image.heic', 'image/heic') - cy.visit('/apps/files') - - // wait a bit for things to be settled - cy.wait(1000) - }) - after(function() { - cy.logout() - }) - - it('See image.heic in the list', function() { - cy.get('#fileList tr[data-file="image.heic"]', { timeout: 10000 }) - .should('contain', 'image.heic') - }) - - it('Open the viewer on file click', function() { - cy.openFile('image.heic') - cy.get('body > .viewer').should('be.visible') - }) - - it('Does not see a loading animation', function() { - cy.get('body > .viewer', { timeout: 4000 }) - .should('be.visible') - .and('have.class', 'modal-mask') - .and('not.have.class', 'icon-loading') - }) - - it('Is not in mobile fullscreen mode', function() { - cy.get('body > .viewer .modal-wrapper').should('not.have.class', 'modal-wrapper--full') - }) - - it('See the menu icon and title on the viewer header', function() { - cy.get('body > .viewer .modal-title').should('contain', 'image.heic') - cy.get('body > .viewer .modal-header button.action-item__menutoggle').should('be.visible') - cy.get('body > .viewer .modal-header button.icon-close').should('be.visible') - }) - - it('Does not see navigation arrows', function() { - cy.get('body > .viewer a.prev').should('not.be.visible') - cy.get('body > .viewer a.next').should('not.be.visible') - }) - - it('Does not have any visual regression', function() { - // cy.matchImageSnapshot() - }) -}) diff --git a/cypress/integration/oddname.spec.js b/cypress/integration/oddname.spec.js index b52bc9994..fb34cbb80 100644 --- a/cypress/integration/oddname.spec.js +++ b/cypress/integration/oddname.spec.js @@ -50,7 +50,6 @@ for (let [file, type] of [ ["audio.ogg", "audio/ogg"], ["image1.jpg", "image/jpeg"], ["image.gif", "image/gif"], - ["image.heic", "image/heic"], ["image.png", "image/png"], ["image-small.png", "image/png"], ["image.svg", "image/svg"],