From b31030594f06f78ebdbe51491ba18ad979904af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 28 Feb 2024 12:56:24 +0100 Subject: [PATCH] style: Fix code style in tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- cypress/e2e/openreadonly.spec.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/cypress/e2e/openreadonly.spec.js b/cypress/e2e/openreadonly.spec.js index b6d8c402bda..ea8f783b225 100644 --- a/cypress/e2e/openreadonly.spec.js +++ b/cypress/e2e/openreadonly.spec.js @@ -4,9 +4,9 @@ import { randUser } from '../utils/index.js' const admin = new User('admin', 'admin') const user = randUser() -describe('Open read-only mode', function () { +describe('Open read-only mode', function() { - const setReadOnlyMode = function (mode) { + const setReadOnlyMode = function(mode) { cy.login(admin) cy.ocsRequest({ method: 'POST', @@ -18,13 +18,13 @@ describe('Open read-only mode', function () { cy.logout() } - describe('Disabled', function () { - const checkMenubar = function () { + describe('Disabled', function() { + const checkMenubar = function() { cy.get('.text-editor--readonly-bar').should('not.exist') cy.get('.text-menubar').getActionEntry('done').should('not.exist') } - beforeEach(function () { + beforeEach(function() { setReadOnlyMode(0) cy.createUser(user) @@ -36,29 +36,29 @@ describe('Open read-only mode', function () { cy.visit('/apps/files') }) - it('Test writable markdown file', function () { + it('Test writable markdown file', function() { cy.openFile('test.md') checkMenubar() }) - it('Test writable text file', function () { + it('Test writable text file', function() { cy.openFile('test.txt') checkMenubar() }) }) - describe('Enabled', function () { - const requireReadOnlyBar = function () { + describe('Enabled', function() { + const requireReadOnlyBar = function() { cy.get('.text-editor--readonly-bar').should('exist') cy.get('.text-editor--readonly-bar').getActionEntry('edit').should('exist') } - const requireMenubar = function () { + const requireMenubar = function() { cy.get('.text-editor--readonly-bar').should('not.exist') cy.get('.text-menubar').getActionEntry('done').should('exist') } - beforeEach(function () { + beforeEach(function() { setReadOnlyMode(1) cy.createUser(user) @@ -73,7 +73,7 @@ describe('Open read-only mode', function () { cy.visit('/apps/files') }) - it('Test read-only markdown file', function () { + it('Test read-only markdown file', function() { cy.openFile('test.md') requireReadOnlyBar() @@ -89,7 +89,7 @@ describe('Open read-only mode', function () { requireReadOnlyBar() }) - it('Test read-only text file', function () { + it('Test read-only text file', function() { cy.openFile('test.txt') requireReadOnlyBar()