From f7385de9d7694d623543c7b6db353b15bd831e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Mon, 2 Aug 2021 09:55:43 +0200 Subject: [PATCH] Disable heic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because it was dissabled by default in the server https://github.com/nextcloud/server/pull/28079 Signed-off-by: John Molakvoæ (skjnldsv) --- cypress/integration/image.heic.spec.js | 79 ------------------- .../integration/oddname/oddname-image.spec.js | 1 - 2 files changed, 80 deletions(-) delete mode 100644 cypress/integration/image.heic.spec.js 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/oddname-image.spec.js b/cypress/integration/oddname/oddname-image.spec.js index 8752aa4a0..877cf2cce 100644 --- a/cypress/integration/oddname/oddname-image.spec.js +++ b/cypress/integration/oddname/oddname-image.spec.js @@ -3,7 +3,6 @@ import runTest from './oddname.js' for (const [file, type] of [ ['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'],