Skip to content

Commit

Permalink
feat: update cypress test for default installed fonts
Browse files Browse the repository at this point in the history
Signed-off-by: Luka Trovic <[email protected]>
  • Loading branch information
luka-nextcloud committed Nov 17, 2023
1 parent a0e5177 commit 9b43738
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 8 additions & 0 deletions cypress/e2e/settings.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {

Expand Down Expand Up @@ -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')
Expand Down
4 changes: 0 additions & 4 deletions lib/Service/FontService.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,5 @@ public function installDefaultFonts(): void {

$this->uploadFontFile($fileName, $fileContent);
}

var_dump(
$this->getFontFileNames(),
);
}
}

0 comments on commit 9b43738

Please sign in to comment.