diff --git a/cypress/e2e/settings.spec.js b/cypress/e2e/settings.spec.js index 3adefbb183..c88f2d2f44 100644 --- a/cypress/e2e/settings.spec.js +++ b/cypress/e2e/settings.spec.js @@ -21,6 +21,7 @@ import { User } from '@nextcloud/cypress' const usesHttps = Cypress.env('baseUrl').substr(0, 5) === 'https' const collaboraUrl = Cypress.env('collaboraUrl') +const defaultFonts = ['AmaticSC-Bold.ttf'] describe('Office admin settings', function() { @@ -77,6 +78,13 @@ describe('Office admin settings', function() { .scrollIntoView() .should('be.visible') + cy.get('#font-settings') + .scrollIntoView() + .should('be.visible') + defaultFonts.forEach(font => { + cy.get('.settings-entry.font-list-settings').contains(font) + }) + // FIXME: Template settings only get visible after reload cy.reload() cy.get('#richdocuments-templates') diff --git a/lib/Service/FontService.php b/lib/Service/FontService.php index 811b52430e..54dd04f134 100644 --- a/lib/Service/FontService.php +++ b/lib/Service/FontService.php @@ -279,9 +279,5 @@ public function installDefaultFonts(): void { $this->uploadFontFile($fileName, $fileContent); } - - var_dump( - $this->getFontFileNames(), - ); } }